• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sendRedirect

 
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
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a RequestDispatcher.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic