Re: Validation is called before form is populated from my database

2005-07-20 Thread William Shief
Finally, I found two valuable solutions to my problem. The first one is MappingDispatchAction, as suggested by Hubert. It is efficient but I dislike to have so much entries in my struts-config (my application is going big enough) I found a good explanation for it by the frustrated programmer (who

Re: Validation is called before form is populated from my database

2005-07-19 Thread Hubert Rabago
Another option is to switch to MappingDispatchAction* so you can set different attributes for the different situations that your Action needs to handle. Hubert *http://struts.apache.org/api/org/apache/struts/actions/MappingDispatchAction.html On 7/19/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:

Re: Validation is called before form is populated from my database

2005-07-19 Thread Hubert Rabago
No, always respond to the user list when it's relevant to the question you posted. This way, other people can offer solutions as well, and those having the same problems will get to hear/read what the solution is. Since you're extending DispatchAction, you probably should turn off automatic valid

Re: Validation is called before form is populated from my database

2005-07-19 Thread William Shief
Unfortunately EditerPersonneAction do extend DispatchAction (using parameter "do") ! (Otherwise your solution would be good) (I answer you personally because I assume such a message is not useful for the list) Billy --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > It seems that you're trying to p

Re: Validation is called before form is populated from my database

2005-07-19 Thread Hubert Rabago
It seems that you're trying to prepopulate a form with values from the DB before showing it to the user. So, you have 1) call /EditionPersonne to prepopulate the form 2) show EditerPersonne.jsp to display the form 3) submit the form to /SomePathLikeSubmitPersonne If so, you don't need to specify

Re: Validation is called before form is populated from my database

2005-07-19 Thread mah bub
Hi, As much I know if you need to load data when the page is load before the validation is called. You may load data when the action is called and there could be another action associated with the Submit button's page which will check the validation. I'm not sure whether it make you clear or

Validation is called before form is populated from my database

2005-07-19 Thread William Shief
Hello, I'm currently having a problem with the Struts validator. I have a very simple Struts bean "EditionPersonneForm" (extending ValidatorForm) associated with an action "EditerPersonneAction" and a JSP form "EditerPersonne.jsp" [From struts-config.xml]