aspose file tools
The moose likes Beginning Java and the fly likes sendRedirect Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 19216

Use a RequestDispatcher.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: sendRedirect
 
Similar Threads
Application level communication
accessing servlets
javax.servlet.include. . .
Servlet Context Attributes.. global?
Problem with AJAX