my question is related to JSP and HTML.
i have a jsp page which have three combo box and a button.
one combo box for a class. two combo box for from_year, to_year.
i want to reterive data on this same JSP page from database based on
combo box value.
my requirement is after select the item from combo boxes then i click
to button, table could be show the data based on criteria of combo box
value on the same Jsp page.
presently, i am checking for a one combo box.
i tried this but no suceesull:
<tr>
<td>
<select name='class_name'>
<%
for(int i=1;i<12;i++)
{
out.println("<option value="+i+">"+i+"</option>");
}
%>
</td>
<td>
<input type="submit" name="submit" value="Go" ></td>
</td>
<%
String submit=request.getParameter("submit");
if(submit!=null && (submit.equals("Go")))
{
String class_name=request.getParameter("class_name");
// database connectivity
%>
please suggest.