This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form bean" Watch "Form bean" New topic

Form bean

ramji srinivasan

Joined: Aug 22, 2005
Posts: 11

i have six textboxes for getting firstname and lastnames in my 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.....

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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Form bean
jQuery in Action, 3rd edition