How to maintain values inside form field while uploading image using jsp?

The problem I am facing is that whenever I fill details in the form and then click on upload link then request go to upload.jsp and when after uploading the form the request comes back to registration page(1st page) then the values from all fields disappear

Questions by bhaba_pradhan

Showing Answers 1 - 10 of 10 Answers

I would recommend you to pass same request to the registration.jsp which was received by upload.jsp. 


The request upload.jsp gets, has all the information about the submitted form so just retrived the same request parameters and filled them in the registration.jsp.

  Was this answer useful?  Yes

Its better you use Jquery or java script or ajax so that we dont need to completely submit the jsp page just dialog box appear for upload picture and after uploading it will close

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions