wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19649
    
  18

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
javax.servlet.include. . .
Application level communication
Servlet Context Attributes.. global?
Problem with AJAX
accessing servlets