jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes stay with same page after submiting form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "stay with same page after submiting form" Watch "stay with same page after submiting form" New topic
Author

stay with same page after submiting form

ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 59
hai..

i want to stay on same page after submitting a form.. how it is possible?

i dont want use in servlet RequstDispacther meyhod...

please help me?

thanks in advance
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 242

Don't write any action in your jsp/html
ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 59
then how it will go request for servlet or jsp?

request should go to servlet but i am stay with that page only
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Why not just return to the same page after the servlet is done processing the form like usual?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 59
how to return that same page after after servlet is done processing?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Redirect to the page controller for that page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stay with same page after submiting form
 
Similar Threads
Redirect hint pls..
Saving the form before navigating to some other page
JSP session tracking problem
How to add error message before sendRedirect
How to hide passwords?