This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes RequestDispatcher return to same tab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "RequestDispatcher return to same tab" Watch "RequestDispatcher return to same tab" New topic
Author

RequestDispatcher return to same tab

Lou Caudell
Ranch Hand

Joined: Oct 06, 2001
Posts: 32
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

Joined: Jan 10, 2002
Posts: 63208
    
  69

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Lou Caudell
Ranch Hand

Joined: Oct 06, 2001
Posts: 32
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

Joined: Jan 10, 2002
Posts: 63208
    
  69

Bear Bibeault wrote:This is information you'll need to supply.
Don't tell. Show!
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: RequestDispatcher return to same tab
 
It's not a secret anymore!