Hi,
As Sean mentioned I need simple redirect ( like reponse.redirect in ASP ).
I changed the code to
if (userid.length() > 0) {
out.println("forwarding....");
response.sendRedirect("http://localhost:8080/examples/JSP/Menu.jsp");
}
Address field in IE is changing to
http://localhost:8080/examples/JSP/Menu.jsp But the application is crashing immediately.
jasper.log
------------
Scratch dir for the JSP engine is: C:\jakarta-tomcat\work\localhost_8080%2Fadmin</JASPER_LOG>
IMPORTANT: Do not modify the generated servlets</JASPER_LOG>
JspEngine --> /jsp/logon.jsp</JASPER_LOG>
ServletPath: /jsp/logon.jsp</JASPER_LOG>
PathInfo: null</JASPER_LOG>
RealPath: C:\jakarta-tomcat\webapps\examples\jsp\logon.jsp</JASPER_LOG>
RequestURI: /examples/jsp/logon.jsp</JASPER_LOG>
QueryString: null</JASPER_LOG>
Request Params: </JASPER_LOG>
Classpath according to the Servlet Engine is: C:\jakarta-tomcat\webapps\examples\WEB-INF\classes</JASPER_LOG>
JspEngine --> /JSP/Menu.jsp</JASPER_LOG>
ServletPath: /JSP/Menu.jsp</JASPER_LOG>
PathInfo: null</JASPER_LOG>
RealPath: C:\jakarta-tomcat\webapps\examples\JSP\Menu.jsp</JASPER_LOG>
RequestURI: /examples/JSP/Menu.jsp</JASPER_LOG>
QueryString: null</JASPER_LOG>
Request Params: </JASPER_LOG>
Classpath according to the Servlet Engine is: C:\jakarta-tomcat\webapps\examples\WEB-INF\classes</JASPER_LOG>
servlet.log
-----------
Context log path="/admin" :tomcat.errorPage: init
Context log path="/admin" :jsp: init
Context log path="/admin" :default: init
Context log path="/examples" :tomcat.errorPage: init
Context log path="/examples" :jsp: init
Context log path="/examples" :default: init
Context log path="/test" :tomcat.errorPage: init
Context log path="/test" :jsp: init
Context log path="/test" :default: init
Context log path="" :tomcat.errorPage: init
Context log path="" :jsp: init
Context log path="" :default: init
Context log path="/examples" :invoker: init
Context log path="/examples" :VerifyUser: init
tomcat.log
-------------
Context log: path="" File not found C:\jakarta-tomcat\webapps\ROOT\WEB-INF\web.xml, using only defaults
Starting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"