joel s wrote:
> Ok, well, I added <welcome-file>WebRoll3.jsp</welcome-file>
> It brings me to:
> Directory Listing For /
> Then I have click "jsp/" to get to the welcome page
> How do I get it to do what I want which is type:
> "http://localhost:8080/wbrl"
> and have it bring me to:
> http://localhost:8080/wbrl/jsp/WebRoll3.jsp
Without any path given, it expected to find your file in the root of the
webapp directory. It didn't, so it gave up and showed you the contents of
the directory. You need this instead:
<welcome-file>jsp/WebRoll3.jsp</welcome-file>
(Sudsy, you have a leading slash, but SRV.9.10 says "The welcome file list
is an ordered list of partial URLs with no trailing or leading /.")
Joel, you might want to download the Servlet Specification and at least flip
through it so you know what's there. The behavior you're trying to get is
covered chapter 9 of the Java Servlet Specification Version 2.3. This
document explains what your Servlet container is required to do for you,
which is useful when you're wondering, "Why won't it ___?" and "How do I
___?"
--
Wendy in Chandler, AZ