I ran into that problem myself a while ago. I was looking for a good way to do this. I came up with a not so pretty solution before we decided to use struts.
What I did is I implemented an HttpSessionListener and on the sessionCreated event, I would use the requestDispatcher through the session and forward the response to another resource. I find this solution very bad. Once we migrated to struts, we simply extended the RequestProcessor class and would verify on every action that the user would have an 'initialized' state, if not, we would forward him to another action. Another solution would be to add a servlet filter that would verify the content of your session for your variables, if they are not present it would either add them, or do other processing. I would like to see better approach to this problem. If you have a solution, please post it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917517#3917517 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917517 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
