Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
RamaSarma Vemuri
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Web Application Frameworks forum, since it appears to be more about Struts than about JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic