> From: Johnny Kewl [mailto:[EMAIL PROTECTED]
> Subject: Re: Relative internal links
>
> What devices does tomcat run on that doesnt have a file
> system? Are you thinking cell?

Embedded systems, including routers.  (I actually have been toying with putting 
Tomcat on a cell phone; admittedly this is a lot like the old Dilbert cartoon - 
1989/09/06 - about him creating a machine that transforms pocket lint into a 
parsely substitute; the punch line is "I'm technology driven" :-)

> If you dont use getServletContext().getRealPath("/")... what
> do you suggest he does?

It's *always* a bad idea to write into a webapp's deployment directory.  The 
Servlet spec requires that the container supply a work area via the context 
attribute javax.servlet.context.tempdir, which would seem appropriate for this 
purpose.  You can either take the default ($CATALINA_HOME/work/<appName>) or 
set some desired value in the <Context> or <Host> elements.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to