Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Deprecated Page.getRequest() and removed references in examples.

  • Loading branch information...
commit b8f81289d5083b9cb0a2c906c36329acc13747e2 1 parent 301d057
@joewalnes joewalnes authored
View
3  src/example-webapp/decorators/badpanelsource.jsp
@@ -42,9 +42,8 @@
<%-- Construct URL from page request and append 'printable=true' param --%>
<decorator:usePage id="p" />
<%
- HttpServletRequest req = p.getRequest();
StringBuffer printUrl = new StringBuffer();
- printUrl.append( req.getRequestURI() );
+ printUrl.append(request.getRequestURI());
printUrl.append("?printable=true");
if (request.getQueryString()!=null) {
printUrl.append('&');
View
3  src/example-webapp/decorators/main.jsp
@@ -42,9 +42,8 @@
<%-- Construct URL from page request and append 'printable=true' param --%>
<decorator:usePage id="p" />
<%
- HttpServletRequest req = p.getRequest();
StringBuffer printUrl = new StringBuffer();
- printUrl.append( req.getRequestURI() );
+ printUrl.append(request.getRequestURI());
printUrl.append("?printable=true");
if (request.getQueryString()!=null) {
printUrl.append('&');
View
3  src/example-webapp/decorators/nopanelsource.jsp
@@ -42,9 +42,8 @@
<%-- Construct URL from page request and append 'printable=true' param --%>
<decorator:usePage id="p" />
<%
- HttpServletRequest req = p.getRequest();
StringBuffer printUrl = new StringBuffer();
- printUrl.append( req.getRequestURI() );
+ printUrl.append(request.getRequestURI());
printUrl.append("?printable=true");
if (request.getQueryString()!=null) {
printUrl.append('&');
View
4 src/java/com/opensymphony/module/sitemesh/Page.java
@@ -29,7 +29,7 @@
* be added to the system by extending Page and implementing an appropriate PageParser.</p>
*
* @author <a href="mailto:joe@truemesh.com">Joe Walnes</a>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public interface Page {
/**
@@ -135,6 +135,8 @@
/**
* Return the request of the original page.
+ *
+ * @deprecated Since Servlet 2.4 API, this is unnecessary - just use the stand HttpServletRequest instance.
*/
HttpServletRequest getRequest();
Please sign in to comment.
Something went wrong with that request. Please try again.