When I want to do something like this, I set validation="false" in the struts-config.xml for the action. Then I can call validate on the ActionForm when appropriate. Or you can have two actions. One to prepopulate fields (with validation="false") and one with validation="true".
David --- Joćo_Guilherme_Del_Valle <[EMAIL PROTECTED]> wrote: > Hi, > > Struts“ automatic validation seems to be very > useful, centralizing > validation logic. But I have a problem. My page has > some aditional > information in it, example: I“m updating a book, the > page has all those > fields about book name, ISBN and so. But I have some > information about book > volumes, that I set as attributes on the request > when forwarding to the JSP. > But when something goes wrong with the validation, > control flow does not > pass throught the Action class, so I can“t populate > the request with the > volume data. > > A solution would be populate the request int the > validate method, but > definitively this does not seem to be a interesting > approach. > > Any other idea? > > Joćo. > > > Joao Guilherme Del Valle > [EMAIL PROTECTED] > Visionnaire Informįtica SA > http://www.visionnaire.com.br > Tel/Fax: +55 41 373-7400 r: 217 > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>