hi all,
in jsp I have
<td>Handicap:</td>
<td ><select name="handicapType" class="selectCourse2">
<% String[] handicapT = new String[]{
HandicapType.getShortString(HandicapType.HANDICAP),
HandicapType.getShortString(HandicapType.NON_HANDICAP)};
for (int k = 0; k < handicapT.length; k++) {
String check = "";
if (k == handicapType) {
check = " selected";
}
%>
<option value="<%=k%>" <%=check%>><%=handicapT[k]%>
</option>
<% }
%>
</select>
in java class I have
String gameType = request.getParameter("gameType");
int GType=0;
GType=Integer.parseInt(gameType);
do I have anything wrong?