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 -05:00

回到话题: Visual Age. Problem when invoke JSP from Servlet.

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=35701