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:
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
--
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
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
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
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:
6 matches
Mail list logo