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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to