开发者

URL rewriting in JSP

开发者 https://www.devze.com 2023-03-14 13:50 出处:网络
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\"??Forward

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

精彩评论

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