To add some more context to this, I was able to successfully use a Struts 1.x action in my web.xml. Struts 1 was based on a servlet vs the ServletFilter that Struts 2.x is based on. Is there anything about this architectural change that would require a different Tomcat configuration? The default extension for struts also changed from .do to .action. Is there anything about this that requires a special Tomcat configuration for form-login-pages that are handled by Struts2? Any help or working examples of a S2 app deployed on Tomcat 5.5.x or 6.x is greatly appreciated!
----- Original Message ---- From: Jon Wilmoth <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, June 25, 2007 2:43:45 PM Subject: Dynamic form-login-page? I'm having problems using FORM authentication and a dynamic login page via Struts 2. I've tried the following web.xml/struts.xml entries with S2.0.8 & Tomcat 5.5.23, but get a 404 "The requested resource (/mywebapp/login.action) is not available" message. <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/login.action</form-login-page> <form-error-page>/loginFailure.action</form-error-page> </form-login-config> </login-config> <action name="login"> <result>/login.jsp</result> </action> The login action loads the login.jsp just fine when called directly, but doesn't work when invoked by the servlet container. Instead I see the following in the Tomcat log: Jun-25-2007 10:31:30:865 AM, PDT [DEBUG] (org.apache.catalina.authenticator.FormAuthenticator) - Save request in session '930B154E1AD9BFB1283165CD888441EF' Jun-25-2007 10:31:33:053 AM, PDT [DEBUG] (org.apache.catalina.core.ApplicationDispatcher) - servletPath=/login.action, pathInfo=null, queryString=null, name=null Jun-25-2007 10:31:33:053 AM, PDT [DEBUG] (org.apache.catalina.core.ApplicationDispatcher) - Path Based Forward Jun-25-2007 10:31:33:053 AM, PDT [DEBUG] (org.apache.catalina.core.ApplicationDispatcher) - Disabling the response for futher output I've asked on the Struts2 list if this should be possible to do and the response I got was it definitely should work. I'm wondering if there's a special Tomcat configuration (beyond my webapp's web.xml struts2 filter mapping) I need to add to enable a .action extension being used for form-authentication. Thanks, Jon --------------------------------------------------------------------- To start a new topic, e-mail: [email protected] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: [email protected] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
