Thanks, It worked but another problem with this for listBox i have used the below code in jsp,
<h:selectManyListbox size="3" id="oneListBox">
<f:selectItems value="#{Register.oneListValues}" />
</h:selectManyListbox>
//code in the bean (setter & getter for the above )
private
String[] oneListBox;
public String[] getOneListBox() {
return oneListBox;
}
public void setOneListBox(String[] oneListBox) {
this.oneListBox = oneListBox;
}
When the user selects multiple items in the list box and when he submits the button, in the backend i need to get the values which are selected only.
For this i have written one method in the bean, when user hits the submit button control will go to the below method,
public String process(){
System.out.println("IN PROCESS METHOD");
System.out.println("Selected list box values>>>"+getOneListBox());
//in the about sysout i am getting null,
return "formRegist";
}
How can i get those values which are selected in the list box.
It would be better if any one give solution for this, because with this my first jsp will be finished and can move to the next.
Thanks in advance,
Subrahmanyam.