Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher return to same tab

 
Lou Caudell
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some give an example of the correct requestDispatcher api to have the servlet return to the calling page.
I don't want it to open another tab.

Java 6
Tomcat 6.0.29
Firefox 3.6
Servlet/jsp 2.5/2.1
Eclipse galileo
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has nothing to do with the request dispatcher, but with how the request is being made on the client. This is information you'll need to supply.
 
Lou Caudell
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's just a standard jsp form whose action calls the servlet. The values are extracted and utilized for a smtp transaction. Then I want it to return to the same page, so validation can be added. I realize that this is easier to accomplish with struts, but I wanted to see it in this traditional form. Oh by the way the jsp is composed of header with css menus calling jsp's and a common footer.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:This is information you'll need to supply.
Don't tell. Show!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic