sabelosimelane
Jun 5th, 2008, 10:46 AM
Please help, I am new to spring and sometimes I get confused :-(
What's the best way to force a user to be logged in to access my pages via the controllers in my app, so that a user cannot jump urls without logging in? I intend to use the ApplicationContext to keep the dto's info for the current session. Also, what would be the best way to use the ApplicationContext ie. when do I retrieve it or rather is there a way that I can do the bean lookup once instead of doing it in every controller.
What's the best way to force a user to be logged in to access my pages via the controllers in my app, so that a user cannot jump urls without logging in? I intend to use the ApplicationContext to keep the dto's info for the current session. Also, what would be the best way to use the ApplicationContext ie. when do I retrieve it or rather is there a way that I can do the bean lookup once instead of doing it in every controller.