Howdy JJ,
You're not barking up the wrong tree, and we should have made this much more clear.
The simple answer is that for
testing, you can simply navigate directly to the JSP just as you would a static html page...
http://localhost:8080/SampleAll/TestBean.jsp So, assuming you name your .jsp file "TestBean.jsp" and place it directly under webapps/SampleApp, you shouldn't have any trouble.
If you DO want to use a servlet mapping, which is almost certainly what you would want to do in the real world, then you *are* barking up the right tree, and you can do something in the DD like:
<servlet>
<servlet-name>doesnotmatter</servlet-name>
<jsp-file>/TestBean.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>doesnotmatter</servlet-name>
<url-pattern>/testIt.do</url-pattern>
</servlet-mapping>
Then if you use:
http://localhost:8080/SampleAll/testIt.do This should take you to the JSP that uses the file name "TestBean.jsp".
At least I think I have that all straight... I haven't had enough
coffee yet
cheers,
Kathy