Hi I wish to get a users age from a form and convert that String to an int and use elsewhere in a java class
The .jsp snippet looks like this
<%
String str = request.getParameter("age");
int convertInt = Integer.parseInt(str);
%>
<% myProgram.comAvgerage(convertInt);%>
however i am getting HTTP Status 500 - java.lang.NumberFormatException: null
I think this is because the form is being created in a UI class first thus the fields are null ?
Is this the fault and can i fix this thanks