Monday, October 28, 2002 09:40 AM
Please explain the scenario in a bit more detail... It is not very easy to understand it from your question. Let me put the way i understood it.. You have a JSP with soem form element. This is submitted to a JSP, which calls(??? or does it forwards the request) a servlet to do the database update. Now you want to redirect to the form jsp, like and edit page, with the data.
If this is the case then you have to build the first JSP as a edit page rather than an empty form element page. It has to check for the data from the database/request, which if exists is displayed in the respective fields or leaves them empty. Use ternary operator to assign the values of each field like
(syntax as in JSP)
If this is not the requirement, please specify the actual requirement clearly.