Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to accept values from an HTML form using JSP

843833Jul 16 2001 — edited Jul 18 2001
I 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



Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2001
Added on Jul 16 2001
7 comments
202 views