开发者

URL rewriting in JSP

After Stru开发者_Go百科ts forwards the user to another page I get something like "http://localhost:8080/LiMS/login.do". How do I get it to say "http://localhost:8080/LiMS/view/welcome.jsp"??


Forwarding happens at server-side, and the browser doesn't know about it. You could redirect to the JSP rather than forwarding, but the whole point of an MVC framework like Struts is to avoid accessing JSPs directly, and alway go through a front controller preparing the model for the view.

Why do you want to see welcome.jsp?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜