Click to See Complete Forum and Search --> : how to refresh current page with a dropdown list field


yu169409
09-11-2003, 08:38 AM
hi all
i have a jsp that contains two fields, one is a dropdown list and anothe is a textbox, based on the value entered in the textbox, i need to select from database and display the result in the list. how can i refresh the page to display the dropdown list with newly added values? thanks

Khalid Ali
09-11-2003, 09:34 AM
you will need to submit the form to the JSP page.
That can be done in couple of ways.

using form elements action attribute

or sending an HTTP Get request to the JSP page by adding the data to the URL

yu169409
09-11-2003, 10:06 AM
so, i can just use document.form[0].submit to submit the form, but without specifying the action ="url". it will just send the request to the page itself. right?

Khalid Ali
09-11-2003, 10:32 AM
theretically...yes..I have never seen anybody say it otherwise..:D

yu169409
09-12-2003, 07:43 AM
thanks for ur help.