File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 61092
    
  66

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: 61092
    
  66

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