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

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: 61764
    
  67

Bear Bibeault wrote:This is information you'll need to supply.
Don't tell. Show!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RequestDispatcher return to same tab