wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 60
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: 243

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

Joined: Jul 19, 2011
Posts: 60
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: 60810
    
  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: 60
how to return that same page after after servlet is done processing?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  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
Saving the form before navigating to some other page
How to hide passwords?
JSP session tracking problem
How to add error message before sendRedirect
Redirect hint pls..