RE: Mapping of form object to a java bean

2009-08-31 Thread Lee Clemens
First off, you don't necessarily need getters for every form field (or any) What IDE are you using? Most should generate setters for you pretty easily, once you declare the class variables. -Original Message- From: vishalj [mailto:vish...@ivycomptech.com] Sent: Friday, August 28, 2009 1:

Re: Mapping of form object to a java bean

2009-08-31 Thread Rusty Wright
You could do it with lombok: http://projectlombok.org/features/index.html vishalj wrote: Is it possible to map all the form fields from struts form to some java bean without writing getter and setters in the action class for each field --

Re: Mapping of form object to a java bean

2009-08-28 Thread Paweł Wielgus
Hi all, or You can use a copy of your object as a field in form (myForm.copyOfMyObject.field), than in action use clone or something like that to propagate fields back to original object. Best greetings, Paweł Wielgus. 2009/8/28 Sunil Choppara : > Hi it is possible Vishal when u use DynaValidato

RE: Mapping of form object to a java bean

2009-08-27 Thread Sunil Choppara
Hi it is possible Vishal when u use DynaValidatorForm Regards Sunil ch -Original Message- From: vishalj [mailto:vish...@ivycomptech.com] Sent: Friday, August 28, 2009 11:06 AM To: user@struts.apache.org Subject: Mapping of form object to a java bean Is it possible to map all the

RE: Mapping of form object to a java bean

2009-08-27 Thread Prabhakar Peri
Hi Vishal, It is possible. -Original Message- From: vishalj [mailto:vish...@ivycomptech.com] Sent: Friday, August 28, 2009 11:06 AM To: user@struts.apache.org Subject: Mapping of form object to a java bean Is it possible to map all the form fields from struts form to some java bean with

Re: Mapping of form object to a java bean

2009-08-27 Thread Steven Yang
you can try modelDriven or simply create a javabean with fields matching your form and put it as an attribute of or action but you still need a getter setter for this bean for example in Action: private FormBean myBean; in JSP: