I have a JSP page which displays a success message on successful deletion of an item.
However, if the page is refreshed, I want the message to not be displayed. I tried all I could do but it just doesn't happen.
I am setting the attribute in a Struts 2 class in request scope. I am retrieving the same attribute in my JSP page using request.getattribute()
. After the if statement, I am trying to set the same attribute to null
. But the success message remains after refreshing the page which I don't want.
Please help!