Simple Spring View Controller

Posted on 1 CommentPosted in Java, Technology Center

Here’s a tip in Spring if you want certain URLs to redirect to specific JSP… For example: //www.ideyatech.com/magic/login.jspx -> acegi_login.jsp //www.ideyatech.com/magic/logout.jspx -> acegi_logout.jsp Since Spring does not allow mapping directly to a jsp page. You need to create a controller to return the appropriate view. Alternatively, you can use URLFilenameViewController but then you’ll be limited read more…

read more...