Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to insert SelectOne Menu value into database using jsp

 
asmaa kellal
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
how to insert SelectOneMenu value into database using jsp

in my code


how to get myvalue for insert into the Database
Give me an example code
thanks
 
Guy deLyonesse
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you mean you want to know how to do it using JSF, not JSP.

You save it to the database the same way you'd save any data from a Java bean to the database. Either using some kind of JPA, ODBC, etc. Once the user enters a value in your view, the backing bean's member variable holds that value. It's just a simple matter of calling some functionality to store it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!