How do I keep Radio button values are not lose them after the Form is submitted
when the form is submitted if some values are not properly entered the old clicked radio button value should be retrived.

How can i achieve the above.


JavaBean:

public void setCusttype (String custtype ) {
this.custtype = custtype ;
}

public String getCusttype () {
return custtype ;

Form in JSP:

<jsp:useBean id="samplereq" class="com.connect.Sample" scope ="request" />
<form method="POST" action="Update.jsp" name="sampleReq" >

<table border="0" align="left">
<tr>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/>supplier
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/>distributor
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/>employee
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='partner'"/>partner
<input type="hidden" name="requester1" value=""/>
</td>
</tr>
</table>

}







Advanced Thanks for all your help.

Regards
Sona