|
-
Nov 28th, 2009, 01:22 AM
#1
Thread Starter
Hyperactive Member
Redirect To Same Page
Hello,
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.
PHP syntax
<form name="f" method="post" action="<?php echo $_SERVER["PHP_SELF"] ?>">
...............
...............
</form>
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.
-
Nov 28th, 2009, 05:35 PM
#2
-
Nov 28th, 2009, 07:42 PM
#3
Re: Redirect To Same Page
Or you can simply set the Action to "." or "#"
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Dec 5th, 2009, 05:11 AM
#4
Thread Starter
Hyperactive Member
Re: Redirect To Same Page
Hello,
Dear ComputerJy, can you please provide me a simple example.
Thanks & Regards.
-
Dec 5th, 2009, 07:02 AM
#5
Re: Redirect To Same Page
<form method="post" action="#">
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|