Hi,

I am having a form with form fields, submit and cancel button in Page1. Once the user enter form field values and clicks the submit button. Then it goes to another jsp page(Page2) which displays the entered form details.

If the user clicks BACK button in the browser from Page2 the submit button in the Page1 should be displayed.

Can anyone please help me to disable the submit button?

In order to avoid the submission of the form twice, the submit button should be disabled.

I am using Java, struts in my project.

Thanks in advance,
Naren