aspose file tools*
The moose likes Beginning Java and the fly likes sendRedirect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "sendRedirect" Watch "sendRedirect" New topic
Author

sendRedirect

medikonda swetha
Greenhorn

Joined: Jul 22, 2008
Posts: 3
i created two servlets and i wanted to communicate from one servlet to another using send redirect method
response.sendRedirect(url of another servlet)
both the servlets are in same project in eclipse
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Originally posted by medikonda swetha:
i created two servlets and i wanted to communicate from one servlet to another using send redirect method
response.sendRedirect(url of another servlet)
both the servlets are in same project in eclipse


response.sendRedirect("./controller.do");
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

Use a RequestDispatcher.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sendRedirect
 
Similar Threads
Servlet Context Attributes.. global?
accessing servlets
Problem with AJAX
Application level communication
javax.servlet.include. . .