• Post Reply Bookmark Topic Watch Topic
  • New Topic

database addition to input values

 
kenji kunoichi
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have a jsp page ....with 2 input text values on which I can add any text .


<body>
<h:form>
<h3>Please enter your details.</h3>
questions: <h:inputText value="#{user.questions}"/>


<h:commandButton value="Insert Values" action="login"/>


</h:form>

like that now what I need to do to input values in mysql database ??
 
aanshu gupta
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you just need a managed bean which connects to the database and inserts the text into the table. create the table in mysql with the fields you want.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!