I have a
jsp form that submits to a
servlet, the servlet processes the request and sets attributes in the request and forwards it back to the same jsp page. The jsp page gives a status message and shows the same form. When I submit the form again, it process my new set of data plus the data I submitted last time.
Now I realize that this is because of the fact that I did a Request Dispatch forward which will the request back to the jsp. Is there another alternative way? I just do nto want my old request parameters to be submitted when I do another submit to the servlet.
I guess I could do a redirect or something. The only problem is I stored a status message inside an attribute in my request object.