tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik" <>
Subject RE: Overide encodeURL()
Date Mon, 11 Jun 2001 20:28:23 GMT
it is possible if you change the source code yourself.
you can read a little bit about the architecture at
this is focused on the interceptors though


Namaste - I bow to the divine in you
Filip Hanik
Software Architect

>-----Original Message-----
>From: David M. Rosner []
>Sent: Monday, June 11, 2001 12:39 PM
>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?

View raw message