Hello,

Yes, I was hoping I could do this just like i've modified the 
SessionInterceptor, but the problem is I need to modify the response -  not 
the request. Am I assuming correctly that interceptors can only modify 
requests and not responses?

The actual implementation of encodeURL is done in the 
HttpServletResponseFacade - I guess I can just change that code and deploy 
it with all my Jakarta builds. But it would be better if I had my own 
HttpServletResponseFacade that extended the functionality of the default 
class. This way I could keep it with my application files and not have to 
worry about later Jakarta upgrades. Problem is I can't get it to compile 
outside of the facade package.

So my question is - what is the correct approach and procedure for 
replacing/extending classes in the facade package?





At 04:28 PM 6/11/2001, Filip Hanik wrote:
>it is possible if you change the source code yourself.
>you can read a little bit about the architecture at
>http://www.filip.net/tomcatbook/TomcatInterceptors.html
>this is focused on the interceptors though
>
>Filip
>
>~
>Namaste - I bow to the divine in you
>~
>Filip Hanik
>Software Architect
>[EMAIL PROTECTED]
>www.filip.net
>
> >-----Original Message-----
> >From: David M. Rosner [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, June 11, 2001 12:39 PM
> >To: [EMAIL PROTECTED]
> >Subject: Overide encodeURL()
> >
> >
> >Hi All,
> >
> >My application has already been coded to use the encodeURL()
> >method for all
> >URL references within all of the JSP pages. I now have a need to take the
> >output of encodeURL() and add additional text to it. Is it possible to
> >write my own version of encodeURL() that will call the request.encodeURL()
> >method and then pass the output back to the JSP page?
> >
> >For example I would have the following on a JSP page:
> >
> ><%= response.encodeURL( "/SomePage.jsp") %>
> >
> >Then I would have a class called response with a static method called
> >encodeURL() which may look like this:
> >
> >static String encodeURL( String location  ) {
> >       String strTemp = response.encodeURL( location );
> >
> >       doStuff( strTemp );
> >
> >       return strTemp;
> >}
> >
> >
> >Due to the fact that I don't fully understand the Jakarta architecture
> >perhaps this isn't possible? Any ideas?
> >
> >

Reply via email to