Author | Message |
---|---|
msargent
Posts: 519
|
Posted 17:13 Feb 19, 2013 |
Hello Dr. Sun, If I understand the lecture correctly, no urls can have a .jsp in them if we want complete MVC architecture. I am wondering how to avoid this (I had this problem in a lab). Would having this:
request.getRequestDispatcher("/Results.jsp").forward(request, response); in the post or get method of a servlet cause a violation of MVC architecture? |
cysun
Posts: 2935
|
Posted 17:26 Feb 19, 2013 |
No. In this case the address bar of the browser would show the URL of the servlet, not the JSP. And as I explained in class, the string you put in request dispather is the path to a file, not a URL. |