• Post Reply Bookmark Topic Watch Topic
  • New Topic

sendRedirect  RSS feed

 
medikonda swetha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21050
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a RequestDispatcher.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!