I'm design MVC structure for current developing system.
Initially, the jsp will post data to servlet class. After processing, servlet will use the requestDispatch er to return processed data back to jsp.
RequestDispatch er dispatcher = request.getRequ estDispatcher("/webapps/hrd/test.jsp");
dispatcher.forw ard(request,res ponse);
Now, the process the successful but i found the url display on address bar still remain as servlet url. It cannot change to the jsp url. who's know how to change it, if we don't use session?
Cause, i though MVC suppose separate the java code from the jsp, let jsp for display purpose and servlet for business process logic. Is the servlet can send data to jsp webpage?
Initially, the jsp will post data to servlet class. After processing, servlet will use the requestDispatch er to return processed data back to jsp.
RequestDispatch er dispatcher = request.getRequ estDispatcher("/webapps/hrd/test.jsp");
dispatcher.forw ard(request,res ponse);
Now, the process the successful but i found the url display on address bar still remain as servlet url. It cannot change to the jsp url. who's know how to change it, if we don't use session?
Cause, i though MVC suppose separate the java code from the jsp, let jsp for display purpose and servlet for business process logic. Is the servlet can send data to jsp webpage?
Comment