View Full Version : values from a textbox to a list (List<String>)

05-04-2008, 08:54 PM
Hi ,
I have a jsp page having 2 text boxes and a submit button , I need to collect the data from the 2 textboxes in to a listobject in
the bean when the submit button is hit in the jsp page.
Also I have I have a data table in the jsp page , which should also get populated when the submit button is hit.
Can any body help me its real urgent.
this is my jsp page :

border="0" styleClass="body" headerClass="header"
columnClasses="last,first" footerClass="footer" width="700"
style="left: auto" value="#{Bean.actionType}" var="getActionType">

<h:column id="colName">
<f:facet name="header">
<h:outputText value="Action Type:" id="ActionType"></h:outputText>
<h:outputText value="#{?????}">
<f:param name="Description" value="#{??????}"/></h:outputText>
<h:column id="colName2">
<f:facet name="header">
<h:outputText value=" Class Name" id="ClassName"></h:outputText>
<h:outputText value="#{??????}">
<f:param name="Description" value="#{?????}"/></h:outputText>


when we hit submit button --
the data entered in the text box should be displayed inside the dataTable and this data should be collected in the list object(present in the bean)
If you need any furthur info please ask .