You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Seth Milder <mr...@physics.gmu.edu> on 2002/11/04 02:10:34 UTC

DynaValidatorForm and Multi-page Forms

Hi,

I am trying to create a form that spans multiple pages, but the 
validation does not seem to work with DynaValidatorForm unless I 
explicitly set the page number in the action class like so:

	int foof = -1;
	try{
	    foof = Integer.parseInt(request.getParameter("page"));
	    info.setPage(foof);
	}catch(Exception e){
	    log.error(e.getMessage(),e);
         }
	
	ActionErrors errors = info.validate(mapping, request);

And this does work...until I submit the second page. When I do this it 
still tries to validate the properties from the 1st page (which are not 
there) and the second page.  I can post more info if that helps. I'd 
really like to know if my program is defective or if it is a bug in 
Struts (which is 1.1b, BTW). Thanks for any guidance.

-- 
Seth Milder
Department of Physics and Astronomy
MS 3f3
George Mason University
Fairfax, VA
http://www.mrseth.org
--
We must learn to distinguish morality from moralizing. HENRY KISSINGER


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>