You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Layman <ra...@aswethink.com> on 2001/06/11 20:31:19 UTC

RE: Problem starting TOMCAT on Win 2000

	TOMCAT_HOME should be C:\some\dir\foo\jakarta-tomcat-3.2.2 (i.e.
absolute path).


> -----Original Message-----
> From: Priya Gupta [mailto:piyugupta2000@yahoo.com]
> Sent: Monday, June 11, 2001 3:01 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Problem starting TOMCAT on Win 2000
> 
> 
> Hello
>    I dowloaded the Tomcat 3.2.2 and unzipped all the
> files in a folder: foo\jakarta-tomcat-3.2.2
>    I set the TOMCAT_HOME variable set
> TOMCAT_HOME=foo\jakarta-tomcat-3.2.2
>    and JAVA_HOME=C:\jdk1.2.2
>    But still when I try startiing Tomcat from command
> it says "The system cannot find the Path specified"
>    Also I have copied the tools.jar file in the Path.
>    It would be really nice if someone can help me out
> of this!
>    Thank you
>    Priya   
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/
> 

RE: Overide encodeURL()

Posted by "David M. Rosner" <da...@recommend-it.com>.
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
>filip@filip.net
>www.filip.net
>
> >-----Original Message-----
> >From: David M. Rosner [mailto:dave@recommend-it.com]
> >Sent: Monday, June 11, 2001 12:39 PM
> >To: tomcat-user@jakarta.apache.org
> >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?
> >
> >


RE: Overide encodeURL()

Posted by Filip Hanik <ma...@filip.net>.
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
filip@filip.net
www.filip.net

>-----Original Message-----
>From: David M. Rosner [mailto:dave@recommend-it.com]
>Sent: Monday, June 11, 2001 12:39 PM
>To: tomcat-user@jakarta.apache.org
>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?
>
>


Overide encodeURL()

Posted by "David M. Rosner" <da...@recommend-it.com>.
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?