webwork/src/main/webwork/action/standard JSP.java,1.8,1.9
[email protected] Wed, 08 May 2002 07:44:59 -0700
| Newsgroups | gmane.comp.java.webwork.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/webwork/webwork/src/main/webwork/action/standard
In directory usw-pr-cvs1:/tmp/cvs-serv8414
Modified Files:
JSP.java
Log Message:
fixed to work with WL
Index: JSP.java
===================================================================
RCS file: /cvsroot/webwork/webwork/src/main/webwork/action/standard/JSP.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** JSP.java 12 Mar 2002 12:54:08 -0000 1.8
--- JSP.java 8 May 2002 14:44:57 -0000 1.9
***************
*** 16,19 ****
--- 16,20 ----
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
+ import javax.servlet.http.HttpServletResponseWrapper;
import java.io.IOException;
import java.io.PrintWriter;
***************
*** 21,24 ****
--- 22,27 ----
import java.util.Locale;
+ import org.apache.log4j.Category;
+
/**
* JSP execution wrapper. This action allows JSP pages to be executed as actions.
***************
*** 71,75 ****
throws Exception
{
-
// Get servlet context
ActionContext ctx = ActionContext.getContext();
--- 74,77 ----
***************
*** 109,203 ****
*/
public class WrapperHttpServletResponse
! implements HttpServletResponse
{
- HttpServletResponse response;
WrapperHttpServletResponse(HttpServletResponse aResponse)
{
! response = aResponse;
! }
!
! public void addCookie(Cookie aCookie)
! {
! response.addCookie(aCookie);
! }
!
! public void addDateHeader(String s, long l)
! {
! response.addDateHeader(s,l);
! }
!
! public void addHeader(String s, String s1)
! {
! response.addHeader(s,s1);
! }
!
! public void addIntHeader(String s, int i)
! {
! response.addIntHeader(s,i);
! }
!
! public boolean containsHeader(String s)
! {
! return response.containsHeader(s);
! }
!
! public String encodeRedirectURL(String s)
! {
! return response.encodeRedirectURL(s);
! }
!
! public String encodeRedirectUrl(String s)
! {
! return response.encodeRedirectUrl(s);
! }
!
! public String encodeUrl(String s)
! {
! return response.encodeUrl(s);
! }
!
! public String encodeURL(String s)
! {
! return response.encodeURL(s);
! }
!
! public void sendError(int i) throws IOException
! {
! response.sendError(i);
! }
!
! public void sendError(int i, String s) throws IOException
! {
! response.sendError(i,s);
! }
!
! public void sendRedirect(String s) throws IOException
! {
! response.sendRedirect(s);
! }
!
! public void setDateHeader(String s, long l)
! {
! response.setDateHeader(s,l);
! }
!
! public void setHeader(String s, String s1)
! {
! response.setHeader(s, s1);
! }
!
! public void setIntHeader(String s, int i)
! {
! response.setIntHeader(s, i);
! }
!
! public void setStatus(int i)
! {
! response.setStatus(i);
! }
!
! public void setStatus(int i, String s)
! {
! response.setStatus(i, s);
}
--- 111,119 ----
*/
public class WrapperHttpServletResponse
! extends HttpServletResponseWrapper
{
WrapperHttpServletResponse(HttpServletResponse aResponse)
{
! super(aResponse);
}
***************
*** 207,225 ****
}
- public int getBufferSize()
- {
- return response.getBufferSize();
- }
-
- public String getCharacterEncoding()
- {
- return response.getCharacterEncoding();
- }
-
- public Locale getLocale()
- {
- return response.getLocale();
- }
-
public ServletOutputStream getOutputStream() throws IOException
{
--- 123,126 ----
***************
*** 238,251 ****
}
- public boolean isCommitted()
- {
- return response.isCommitted();
- }
-
- public void reset()
- {
- response.reset();
- }
-
public void resetBuffer()
{
--- 139,142 ----
***************
*** 253,274 ****
}
- public void setBufferSize(int i)
- {
- response.setBufferSize(i);
- }
-
- public void setContentLength(int i)
- {
- response.setContentLength(i);
- }
-
public void setContentType(String s)
{
// Ignore
- }
-
- public void setLocale(Locale aLocale)
- {
- response.setLocale(aLocale);
}
}
--- 144,150 ----
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [email protected]