tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <>
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.



software  --
tech news --

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message