×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

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