File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Form bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form bean" Watch "Form bean" New topic
Author

Form bean

ramji srinivasan
Greenhorn

Joined: Aug 22, 2005
Posts: 11
hi

i have six textboxes for getting firstname and lastnames in my form.is there anyway in which i can use single getter/setter method to retrieve the values from the six textboxes or i have put getter/setter for each textbox.....

Regards
Ramji Srinivasan
Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
I believe you can not do that. Yet tools like Eclipse create getters and setters for you. Just define the variables, right click-> source -> generate getters and setters, check the ones you want, click ok and you're done. Not much trouble there.
 
Consider Paul's rocket mass heater.
 
subject: Form bean
 
Similar Threads
submitting dynamic text boxes to ActionForm
Problem assigning long values
drop down menu usinng optionCollections
Unknown Error in JSTL I guess.
Clarification for jstl <c:foreach> tag