File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
URL after return modelView or through Redirect didnt change
Joined: Jan 27, 2011
Aug 24, 2011 06:57:26
i have a login.jsp through which i am calling the controller using annotation <form:form action="/ProjectName/loginCheckAfterSubmit.do" id="loginForm1" method="POST" commandName="userInfo"/>
and in controller
showAdminForm( @ModelAttribute("userInfo") User userInfo, BindingResult result, HttpServletRequest request, HttpServletResponse response )
// Some Stuff//
return new ModelAndView("admin"); //For calling admin.jsp which is in WEB-INF/jsp/ folder
//return "redirect:admin.jsp"; // This is also not working
catch( Exception e )
logger.error("Stack : ", e);
So my problem is after login it went to admin.jsp thr URL
But i want
What i did wrong ... plwase help me.
I agree. Here's the link:
subject: URL after return modelView or through Redirect didnt change
Java Script in JSP page
controller don't display view
how to redirect to success page in tomcat using its lapd configuration
My jsp file is not displayed - tomcat does not pick up the class file
Regarding preconfigured tomcat 6.0.16.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015