Link to home
Start Free TrialLog in
Avatar of Faiya
Faiya

asked on

How to do a page refresh in jsp after submit the action ?

I have a search jsp which will produce a report based on the search criteria, if the search criteria returns no record, it will display the message "no record found", but next time  when i change the search criteria, it will just generate a CSV report and page won't get refreshed, so the previous error message won't get cleared, I want to refresh the page to clear the error message.
ASKER CERTIFIED SOLUTION
Avatar of mrcoffee365
mrcoffee365
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Faiya
Faiya

ASKER

Thanks a lot mrcoffee365,
In fact i just wanted to refresh the error filed on the page based on the search.
Which i was able to do by playing with div in java script.

But the proper way is that you have explained.