I was learning SpringMVC but currently facing one problem.
All my jsp files are under /WEB-INF/jsp folder.
During a form submission I try to return a new page success.jsp if registration going to be succesfull else failure.jsp.
My problem is Although message’s were displaying but the url din’t get changed.Is it the same as it were during form request.http://localhost:8080/Twitter/User?new
After succesfull for submision I want it to be http://localhost:8080/Twitter/Success.jsp.
I am able to achieve this when I put my jsp folder outside Web-inf.
Any help?
I was learning SpringMVC but currently facing one problem. All my jsp files are
Share
You cannot do that by redirecting from your server. And its not about putting your .jsp files under any folder. Displayed url is about where data is getting from. You cant change it by forwarding or redirecting or using
ModelAndView.