Re: Wizards and Struts Validator
Steve Leung <[email protected]>
| Newsgroups | gmane.comp.java.mvc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I also have such problem. For me, I use two form to validate it. For example, Before insert new bean, I create a form called insertForm and only validate the properties without id. Before update an old bean, I create a form called updateForm and validate all the fields including the id value which got from database. I think that it should be a more clever way to do this without duplicate the form and validate different fields. Rgds, Steve --- Paul Caruana <[email protected]> 萎辣批捆嚗> I wish to share a form bean across several web pages > and I using the Struts > validator. > The problem is Struts validator validates all fields > defined in the common > bean therefore a field to be validated ion page 2 > will be validated on page > 1. > > What is the recognise method for passing or sharing > properties (fields) > across wizard pages using Struts validator? > > Thanx in advance Paul > > > > ------------------------------------------------------------------------This > email is intended for the named recipient only. The > informationcontained in this message may be > confidential, or commerciallysensitive. If you are > not the intended recipient you must not reproduceor > distribute any part of the email, disclose its > contents to any otherparty, or take any action in > reliance on it. If you have received thisemail in > error, please contact the sender immediately. > Please deletethis message from your > computer.------------------------------------------------------------------------ > _________________________________________________________ 憟喃犖銋(閮勗摰)嚗蝚銝剜瘛(璆戭)嚗銝()... Over 800 latest ringtones, only on Yahoo! http://ringtone.yahoo.com.hk