Datamal Blog

Monday, March 15, 2004

Multipage forms
in jsp :

   <html:hidden property="page" value = "2" />

then in Action use :-

      XYZFormBean bean = XYZFormBean(...)
      if (bean.getPage() == 2) {
         // do page 2 stuff
      }

where the getPage() method comes from :-

   int org.apache.struts.validator.ValidatorForm.getPage()