tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <qm...@brandxdev.net>
Subject Re: How do I run servlets on the root directory of localhost?
Date Sun, 13 Jun 2004 02:34:08 GMT
On Sat, Jun 12, 2004 at 08:11:57PM -0400, Jarl Skogsholm wrote:
: The paths in my servlet are relative.


Be careful with that -- the definition of "relative" within a servlet is
sketchy, at best.

I don't remember the specifics right now, but there's a way to get a
context-relative path within the servlet.  Use that to locate your
images and other static content.

If you're willing to convert the display logic to a JSP, there's a JSTL
tag that'll do that, too.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message