Pl. help to call a servlet page which is in another directory from a jsp page.

If servlets are not mapped with use of web.xml you call it like this from the form for example

<form action="http://localhost:8080/PROJECT_NAME/servlet/SERVLET_NAME_NO_FILE_EXTENSION" method="POST">
YOUR FORM HERE
</form>

The web.xml mapping will look like this

<servlet>
       <servlet-name>SERVLET_NAME_YOU_WANT_TO_CALL_IT</servlet-name>
       <servlet-class>REAL_SERVLET_NAME_NO_FILE_EXTENSRION</servlet-class>
    </servlet>

    <servlet-mapping>
       <servlet-name>SERVLET_NAME_YOU_WANT_TO_CALL_IT</servlet-name>
       <url-pattern>/A_NAME.jsp</url-pattern>
    </servlet-mapping>

Example:
REAL_SERVLET_NAME_NO_FILE_EXTENSRION is FrontController
SERVLET_NAME_YOU_WANT_TO_CALL_IT I want to be Front
A_NAME.jsp I want to be front.jsp
to call my FrontController I will do following

<form action="front.jsp" method="POST">
FORM CODE HERE
</form>
This question has already been answered. Start a new discussion instead.