Redirect To Same Page
I have been stuck by a serious situation. I wish to redirect my page to the same page. In my JSP page's form action property page I like to mention the same page name.
We can do the same in PHP page like below.
<form name="f" method="post" action="<?php echo $_SERVER["PHP_SELF"] ?>">
How is it possible to do the same in the JSP page ? I am using JSP with the Servlet in MVC framework.
Please help. Thanks a lot in advance.
Thanks & Regards.
Use an empty action attribute on a form
to submit that form to the current page.
<form action="" method="post">