×

Loading...

Visual Age. Problem when invoke JSP from Servlet.

Visual Age. Problem when invoke JSP from Servlet.
--------------------------------------------------------------------------------
Visual Age.
I hope to invoke one JSP file through Servlet. The statement is like this:
response.sendRedirect("./jsp/welcome.jsp?userId=" + userId);

The problem is: when this statement is executed, the browser will get the
following address:

http://10.10.10.10/login/welcome.jsp?userId=0001
However, my JSP engine is installed in the port 8080. So the statement above can't work. I should correct it to http://10.10.10.10:8080/login/welcome.jsp?userId=0001
(add :8080 by myself) each I run the JSP. Do you have a little easier way to solve the problem? thank you!
Report