tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarl Skogsholm <>
Subject Re: How do I run servlets on the root directory of localhost?
Date Sun, 13 Jun 2004 06:38:42 GMT
I don't want to go to a jsp model.  This works fine on internet.  It also 
works fine if i add a path like localhost:8080/home

So if '/' is a bad servlet mapping what should it be for the root?

Thanks much for your help.

On Sat, 12 Jun 2004 21:34:08 -0500, QM <> wrote:

> 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

They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.
-- Benjamin Franklin (1755)

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

View raw message