I am writing a JSP(Java server page), i need to regenerate a dropdown list using a block of codes which is on top of the page,after carrying out some functions at the bottom of the same page. To avoid the later action from taking effect after the next submit. I need to RELOAD the page JUST after executing this action. Please , how do i reload a page within itself.
I am writing a JSP which removes items from a top LIST box to dynamically generate a Table below on the same page. And removing rows from the table to add back to the Top List. This is working well, EXCEPT that on removing one or more rows the items contained in the removed rows are not added to the top List immediately.Since the code generating the List (dynamically from a Query) as been by-passed before removing the rows. So, the items removed are added on display after the next request(submission of the form).
Please, how can i RELOAD the page within itself to go back to the Logic (scriptlet block)on top which generate the list before any next request. Note: the Top list is generated using a HashTable (in java.util package) and the Table with each row (containing an item removed from the Top List(i.e. select) and a checkbox + textfield) is also generated by a second Hashtable. [This message has been edited by Gabriel Fox (edited November 27, 2001).]
Joined: Oct 17, 2001
I had to re-arrange my business logic within the JSP: Processing of Top and bottom Hashtable came before display of List .Then the table display was at the tail end.Cheers.