I have question on spring mvc and jsp pages location under webapp vs under WEB-INF.
Lets say we have below setup.
webapp
WEB-INF
mvc-dispatcher.xml
web.xml
login.jsp
register.jsp
success.jsp
error.jsp
index.jsp
I can refer to pages from browser using urls like http://host.com/app/index.jsp and from there I can link (a href) to register.jsp. From register.jsp I post to controller which can return success view that resolves to success.jsp (using InternalResourceViewResolver).
If I move jsp pages under WEB-INF (instead of earlier under webapp) I will be unable to refer http://host.com/app/index.jsp from browser. Also from success.jsp currently I link to index.jsp using a href="index.jsp" which will need to change to map to controller (may be at / like the dispatcher servlet) that would return index as view name. So all my links will need to be served by controller. am I right ? or is there a way to refer to jsp pages without any mapped controller when jsp pages are located under WEB-INF (given InternalResourceViewResolver is configured).
Regards,
Miten.