I've an application wherein i've a package called cms and it has a no of classes in it. i also have no. of htmls and jsp fils which i've added sucessfully but the problem i am having is how do i add contexts for all the servlets i.e. like for a simple servlet we put the following code in the web.xml
web.xml
___________________________________________________
<servlet-name>SessionServlet</servlet-name>
<display-name>Simple Session Servlet</display-name>
<servlet-class>test.session.SessionTestServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>SessionServlet</servlet-name>
<url-pattern>/servlet/test</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>0</session-timeout>
</session-config>
_______________________________________
i mean something like this.
how do i add the contexts for all my classes so that i can access those servlets from my htmls accordingly.
Thanks in advance,
Shashank Arora