You should map url's to your servlets. See the <servlet> and
<servlet-mapping>
tags in web.xml, e.g.:
<servlet>
<servlet-name>
login
</servlet-name>
<servlet-class>
com.yourcompany.LoginServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
login
</servlet-name>
<url-pattern>
/login
</url-pattern>
</servlet-mapping>
The .class file have to be under WEB-INF/classes or in a JAR under
WEB-INF/lib
-----Original Message-----
From: Burkard Endres [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 12:58 PM
To: [EMAIL PROTECTED]
Subject: jsps and servlets in same context?
Hi
i want my servlets and my jsps be served out of the same directory.
this means:
the servlet shoud be mapped to a folder so that they are accessible via:
/myfolder/myservlet
the jsps should also be accessible via
/myfolder/myjsp.jsp
if i copy the jsps in the /myfolder/... it works if i provide the full
path to the jsps
but if i access only /myfolder/ i recieve a directorylisting where i can
download
my jsps in sourcecode and this is of course not acceptable.
Kind regards
Burkard Endres
i-te systems GmbH
Wilhelm-Dahl-Strasse 16
97082 Wuerzburg
Germany