how to accept values from an HTML form using JSP
843833Jul 16 2001 — edited Jul 18 2001I have a JSP say, record.jsp which uses a bean to validate values entered in an HTML form generated by another JSP called input.jsp. How do I accept values entered in say, a text field or dropdown list ?
I do not want to use the SUBMIT button with the action="record.jsp" but I want to use an onClick=javascript function() since I need to set a different URL based on the entry on the HTML form.
Another related question:
If I want the dropdown list in an HTML form that is generated using a JSP to show me the value that is currently stored in the database and also show me the other values available in the dropdown list..how do I do this ? Using while(rs.next) and looping thru the select option....is not what I want to do since I will not know what order the selections are stored in the database.
Please help.
Thanks