• Post Reply Bookmark Topic Watch Topic
  • New Topic

I need coding for inserting these user input datas to mySql while clicking that submit button  RSS feed

 
vigneshwaran Gn
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<h:form>
<h:outputText value="Name"></h:outputText>
<h:inputText value="#{sample.name}"></h:inputText>

<h:outputText value="City"></h:outputText>
<h:inputText value="#{sample.city }"></h:inputText>

<h:outputText value="Phone"></h:outputText>
<h:inputText value="#{sample.phoneNo}"></h:inputText>


<h:commandButton value="Submit" action="#{sample.submit}"></h:commandButton>
</h:form>
 
Santhosh ayiappan
Ranch Hand
Posts: 81
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to write the code and if you face any issues while coding, we would be very happy to help you out.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!