RE: Servlet Validation
Create a blank index.html page in the /host/account directory that redirects to index.jsp in a META tag with the URL /do/index and the user will be directed to any path and bean defined for that path in struts-config. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:31 PM Hi, I want all my jsps to be called through the ActionServlet instead of directly through a url. I've subclassed ActionServlet and overridden the process() method to do authentication. So, on every request it will check if the user is logged in and then provide the page they asked for. How do I set this up? Here's my feeble attempt in the struts-config file: action name=bogusForm type=com.ibm.sdfreg.action.AccountIndexAction path=/account/ scope=request validate=false forward name=success path=/account/index.jsp / /action There is no bogusForm bean defined and the AccountIndexAction.perform() method just forwards to the success page. I want the user to type in this url http://host/account/ and get the index page. Is this even possible? Thanks, Dave _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet Validation
Thanks, I thought of a better variation of that technique though. The w3c recommends not using the meta refresh because of accessibilty and browser variation. I'll put an index.jsp with a single redirect statement in it to index.do. This way, it's using actual http header redirects instead of meta tags. Thanks, Dave Create a blank index.html page in the /host/account directory that redirects to index.jsp in a META tag with the URL /do/index and the user will be directed to any path and bean defined for that path in struts-config. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:31 PM Hi, I want all my jsps to be called through the ActionServlet instead of directly through a url. I've subclassed ActionServlet and overridden the process() method to do authentication. So, on every request it will check if the user is logged in and then provide the page they asked for. How do I set this up? Here's my feeble attempt in the struts-config file: action name=bogusForm type=com.ibm.sdfreg.action.AccountIndexAction path=/account/ scope=request validate=false forward name=success path=/account/index.jsp / /action There is no bogusForm bean defined and the AccountIndexAction.perform() method just forwards to the success page. I want the user to type in this url http://host/account/ and get the index page. Is this even possible? Thanks, Dave _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet Validation
TAMTOWTDI! Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 11:13 AM Thanks, I thought of a better variation of that technique though. The w3c recommends not using the meta refresh because of accessibilty and browser variation. I'll put an index.jsp with a single redirect statement in it to index.do. This way, it's using actual http header redirects instead of meta tags. Thanks, Dave Create a blank index.html page in the /host/account directory that redirects to index.jsp in a META tag with the URL /do/index and the user will be directed to any path and bean defined for that path in struts-config. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:31 PM Hi, I want all my jsps to be called through the ActionServlet instead of directly through a url. I've subclassed ActionServlet and overridden the process() method to do authentication. So, on every request it will check if the user is logged in and then provide the page they asked for. How do I set this up? Here's my feeble attempt in the struts-config file: action name=bogusForm type=com.ibm.sdfreg.action.AccountIndexAction path=/account/ scope=request validate=false forward name=success path=/account/index.jsp / /action There is no bogusForm bean defined and the AccountIndexAction.perform() method just forwards to the success page. I want the user to type in this url http://host/account/ and get the index page. Is this even possible? Thanks, Dave _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlet Validation
An acronym a day keeps the Project Manager at bay. - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 10:17 AM Subject: RE: Servlet Validation TAMTOWTDI! Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet Validation
David, Look at using a filter or the better yet the SecurityFilter project by Max Cooper which mimics container managed security. SecurityFilter information can be found at: http://securityfilter.sourceforge.net Hope that helps. Regards, Todd G. Nist -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:31 PM To: [EMAIL PROTECTED] Subject: Servlet Validation Hi, I want all my jsps to be called through the ActionServlet instead of directly through a url. I've subclassed ActionServlet and overridden the process() method to do authentication. So, on every request it will check if the user is logged in and then provide the page they asked for. How do I set this up? Here's my feeble attempt in the struts-config file: action name=bogusForm type=com.ibm.sdfreg.action.AccountIndexAction path=/account/ scope=request validate=false forward name=success path=/account/index.jsp / /action There is no bogusForm bean defined and the AccountIndexAction.perform() method just forwards to the success page. I want the user to type in this url http://host/account/ and get the index page. Is this even possible? Thanks, Dave _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlet Validation
Good link. Thanks, Vic Todd G. Nist wrote: David, Look at using a filter or the better yet the SecurityFilter project by Max Cooper which mimics container managed security. SecurityFilter information can be found at: http://securityfilter.sourceforge.net Hope that helps. Regards, Todd G. Nist -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:31 PM To: [EMAIL PROTECTED] Subject: Servlet Validation Hi, I want all my jsps to be called through the ActionServlet instead of directly through a url. I've subclassed ActionServlet and overridden the process() method to do authentication. So, on every request it will check if the user is logged in and then provide the page they asked for. How do I set this up? Here's my feeble attempt in the struts-config file: action name=bogusForm type=com.ibm.sdfreg.action.AccountIndexAction path=/account/ scope=request validate=false forward name=success path=/account/index.jsp / /action There is no bogusForm bean defined and the AccountIndexAction.perform() method just forwards to the success page. I want the user to type in this url http://host/account/ and get the index page. Is this even possible? Thanks, Dave _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]