aspose file tools*
The moose likes Struts and the fly likes passing values of Select box from JSP to Action class thru form Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "passing values of Select box from JSP to Action class thru form Bean" Watch "passing values of Select box from JSP to Action class thru form Bean" New topic
Author

passing values of Select box from JSP to Action class thru form Bean

RamaSarma Vemuri
Greenhorn

Joined: Aug 07, 2004
Posts: 9
This is about jsp, beans with struts. The problem is, I am using one jsp which is containing some select boxes. I ll be populating the select boxes from DB thru beans and action class. It�s working properly. The problem is with the data insertion from JSP to DB. The case is, I have to add a new record (record is containing the select boxes data as fields). Now if I select any data from the �select�box, I have to capture that data thru �action class� and then pass that to �form Bean� so that I can update my DB with the new record. But what is happening is, I am unable to get the values of the �select box� data from JSP to action. I am using struts and 'iterate' tag to populate the data into the 'select' box. Can any one help me out with this? One more thing, I can�t use sessions in JSP. If any one can provide some examples in this regard, that will be of great use.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Moving this to the Web Application Frameworks forum, since it appears to be more about Struts than about JSP.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing values of Select box from JSP to Action class thru form Bean
 
Similar Threads
Problem in setting a value of drop down
Select multibox on combo box selection?
Selected values
JSP Form values Not able to submit
Need suggestions and help for my scenario in struts