Struts 2. Validation Issue

2008-02-03 Thread Martin Castellanos
Hi, I'm trying to use the xml validation, the validation is executing and detecting errors, but after the validation the method save gets called instead of invoking the input action it's executing the 'success' action. I've tried several things but still can't see what's missing, I'm using Spring

Re: Struts 2. Validation Issue

2008-02-03 Thread Dave Newton
--- Martin Castellanos [EMAIL PROTECTED] wrote: Hi, I'm trying to use the xml validation, the validation is executing and detecting errors, but after the validation the method save gets called instead of invoking the input action it's executing the 'success' action. I've tried several things

Re: Struts 2. Validation Issue

2008-02-03 Thread Martin Castellanos
Action Class is: com.maca.web.BookAction Validation file is placed next to the class: BookAction-save-validation.xml Validation file for the book entity is: Book-validation.xml and it's placed next to the Book class On Feb 3, 2008 12:20 PM, Dave Newton [EMAIL PROTECTED] wrote: --- Martin

Re: Struts 2. Validation Issue

2008-02-03 Thread Dave Newton
--- Martin Castellanos [EMAIL PROTECTED] wrote: Action Class is: com.maca.web.BookAction Validation file is placed next to the class: BookAction-save-validation.xml Validation file for the book entity is: Book-validation.xml and it's placed next to the Book class Signature means How is your

Re: Struts 2. Validation Issue

2008-02-03 Thread Martin Castellanos
Oh, it's just a regular bean, doesn't implements or extends anything On Feb 3, 2008 12:32 PM, Dave Newton [EMAIL PROTECTED] wrote: --- Martin Castellanos [EMAIL PROTECTED] wrote: Action Class is: com.maca.web.BookAction Validation file is placed next to the class:

Re: Struts 2. Validation Issue

2008-02-03 Thread Dave Newton
--- Martin Castellanos [EMAIL PROTECTED] wrote: Oh, it's just a regular bean, doesn't implements or extends anything That'll be an issue. The workflow interceptor depends on the ValidationAware interface to decide if it should modify the result. Dave On Feb 3, 2008 12:32 PM, Dave Newton

Re: Struts 2. Validation Issue

2008-02-03 Thread Martin Castellanos
Thanks, I extended DefaultActionSupport and now it's working On Feb 3, 2008 12:47 PM, Dave Newton [EMAIL PROTECTED] wrote: --- Martin Castellanos [EMAIL PROTECTED] wrote: Oh, it's just a regular bean, doesn't implements or extends anything That'll be an issue. The workflow interceptor

Datetimepicker simple thing doesn't work java.text.ParseException: Unparseable date:

2008-02-03 Thread Serge Bornow
Hi All, I:'ve been battling this for many hours. I hope someone can help. Using JDK 1.5, Struts 2.0.11 My property: shoot_date of type Date has get and set and on execute() set's the default date to today's date setShoot_Date(new Date); on the form: s:datetimepicker name=shoot_date

Re: Datetimepicker simple thing doesn't work java.text.ParseException: Unparseable date:

2008-02-03 Thread Jeromy Evans
Hi Serge, You'll find many emails in this forum relating to DatePicker problems. Some of the solutions are here: http://cwiki.apache.org/S2WIKI/vault.html In this case though, is it possible you've forgotten the s:head tag at the top of the page? Serge Bornow wrote: Hi All, I:'ve been

Re: Datetimepicker simple thing doesn't work java.text.ParseException: Unparseable date:

2008-02-03 Thread Dave Newton
I'm not sure what the JavaBean convention would be for a property with an underscore. Have you tried it as shootDate (with corresponding getShootDate/setShootDate methods)? Dave --- Serge Bornow [EMAIL PROTECTED] wrote: My property: shoot_date of type Date has get and set and on execute()

Re: [S2] Action attribute of submit

2008-02-03 Thread Jeromy Evans
hezjing wrote: Hi In http://struts.apache.org/2.0.11/docs/submit.html, the submit tag has an action attribute that says set action attribute. May I know how can we make use of this action attribute? Any example? Thank you! It simply overrides the action attribute of the form: s:submit

Re: [S2] Multiple buttons in a form

2008-02-03 Thread Jeromy Evans
hezjing wrote: Hi I have a form with multiple buttons, s:form namespace=/user action=updateUser method=post s:submit name=action value=resetPassword key=button.resetPassword / s:submit name=action value=delete key=button.delete / /s:form and my action class looks like the following,

[S2] Action attribute of submit

2008-02-03 Thread hezjing
Hi In http://struts.apache.org/2.0.11/docs/submit.html, the submit tag has an action attribute that says set action attribute. May I know how can we make use of this action attribute? Any example? Thank you! -- Hez - To

[S2] Multiple buttons in a form

2008-02-03 Thread hezjing
Hi I have a form with multiple buttons, s:form namespace=/user action=updateUser method=post s:submit name=action value=resetPassword key=button.resetPassword / s:submit name=action value=delete key=button.delete / /s:form and my action class looks like the following, public String