×

Loading...

Visual Age. Problem when invoke JSP from Servlet.

howru (How are you?)
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!
(#35701@0)
2001-3-21 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Visual Age. Problem when invoke JSP from Servlet.

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论