Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-28-2009, 08:21 AM
Member
 
Join Date: Nov 2009
Posts: 2
Rep Power: 0
systech44 is on a distinguished road
Question 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.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 12-08-2009, 12:27 PM
FON FON is offline
Senior Member
 
Join Date: Dec 2009
Location: Belgrade, Serbia
Posts: 128
Rep Power: 0
FON is on a distinguished road
Default
Use an empty action attribute on a form
to submit that form to the current page.

<form action="" method="post">
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect to html page simo_mon Java Servlet 3 02-12-2009 06:18 PM
Redirect page in web service bluesheeva Advanced Java 3 02-04-2009 12:56 AM
Redirect Page in SOAP Message Handler bluesheeva Advanced Java 0 12-28-2008 01:43 PM
redirect page within a java applet paul Java Applets 1 08-07-2007 06:11 AM
How can I redirect in servlet? Heather Java Servlet 1 07-14-2007 06:52 PM


All times are GMT +2. The time now is 02:20 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org