Is there any reason we shouldn't use the Logic tab library (http://struts.apache.org/tags-logic) with Struts 2? If so, is there any subsitute? I'm looking specifically for <logic:redirect> and <logic:messagesPresent> (along with the old <html: messages>)
~Dan Allen -----Original Message----- From: Zheng, Xiahong [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 2:55 PM To: Struts Users Mailing List Subject: RE: [S2] : Help with annotated validation That's indeed what I am missing. Thanks for your prompt help. -----Original Message----- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 2:48 PM To: Struts Users Mailing List Subject: Re: [S2] : Help with annotated validation --- "Zheng, Xiahong" <[EMAIL PROTECTED]> wrote: > My annotated validation doesn't happen. The following are the code > snippets for action class and config files. When I leave the SSN field > blank and hit submit my action's execute method is called hence fails > instead of redisplay of the login page again with validation error > message. What am I missing here? > [...] > <action name="login" class="my.pacakge.LoginAction"> > <result>home</result> > <result name="failed">loginError</result> > <interceptor-ref name="autowiring"/> > <interceptor-ref name="params"/> > <interceptor-ref name="validate"/> > <interceptor-ref name="workflow"/> > </action> Do you have an "input" result defined? If you have logging turned up you should see a reference to the inability to find an "input" result, which is where the "workflow" interceptor will go to when there are validation errors. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]