On Fri, Aug 20, 2004 at 04:13:20PM -0500, Dan Schwartz wrote:
: all i'm trying to do is create a web application
: (/usr/tomcat/webapps/j606) that will allow me to use virtual paths. 

I don't understand this "virtual paths" thing -- I think it's me, I
haven't understood a bloody thing all day ;) -- but read on.


: right now a href="/links/index.jsp" goes to http://localhost:8080, i

As it should.


: want it to go to http://localhost:8080/j606/links/index.jsp.  JSP's
: are my main concern, just trying to get to a good starting point to
: learn!

A few things:
1/ look into the JSTL "<c:url />" tag, it's meant to create
context-relative links just for this purpose.  It's either that, or
hard-code "/j606" in all of your pages, which you already seem to know
is a bad idea.

2/ Spend some time reading up on servlet technology before you dive in.
("Inside Servlets" is a fantastic reference, though it was written for
spec 2.3.)  Get to know terminology such as "context" and understand
what roles are played by the different actors (container vs webapp, etc)

-QM

-- 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to