You could use the mapping class and then compare what is the action tag execute. Some like this:
if (mapping.getPath().compareTo("/prepare")==0) form.fillfromDB(); else do nothing; // leave form as is, with data entered by the user Dou you like this...? ----- Original Message ----- From: "Leonardo Francalanci" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 06, 2004 10:44 AM Subject: R: repost: validator & retrieving data > Ok, > I understand you... > Let me I think it... I found 2 solutions so far: 1) hidden field in the form (extending a Form that has an hidden field and extending an action that has a method like isComingFromAValidatorError() that looks for the value of the hidden par) 2) If the request is a GET then it's the first time, otherwise we are coming from an validator error (ugly...) 3) Anant's solution (3 <action> elements and 2 actions) But I don't like them :( Any other ideas? --------------------------------------------------------------------- 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]