This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes retreive the value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "retreive the value" Watch "retreive the value" New topic
Author

retreive the value

pavi
Ranch Hand

Joined: Jan 23, 2008
Posts: 31
how can i add a textbox dynamically in onclick event and how to retrieve the dynamic textbox value in action class when i submit the form.
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Have textbox which is hidden initially. Something like...

Now with the "onClick" event, associate a JS snippet like...

This will give you the desired behaviour at the client end. To retrieve the value of this textbox in your action class, have the getter/setter => [getTxtVal()/setTxtVal()] : in your Action form class [incase you're using Struts] or else have the getter/setter in your Action class itself [if using Struts2]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retreive the value