• Post Reply Bookmark Topic Watch Topic
  • New Topic

SendRedirect in Servlet  RSS feed

 
rajanikanth bhagavan kanth
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Is it possible to send the control to two servers
i mean to say can i use send redirect statements continuously.

Thanks in advance.
 
Mohamed Inayath
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes we can send sendredirect.

But what do you mean by continously?
 
rajanikanth bhagavan kanth
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi thank you for reply.

I mean to say can i redirect the control continuously i.e

ex:
statement 1: send redirect to fst servlet
statement 2: send redirect to 2nd servlet

let me know if im not clear
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nopes .. Once you do a SendRedirect you are committed and should no longer have any control over the response ...

Also it does not make any sense even if there was a way to do it? What do you expect the user to end up seeing? The response from the first servlet (or server) or the second one?
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this topic is so confusing.. you guys are discussing for servlets or servers?
hope this one should be to sendRedirect to servlets. then only one servlet could be possible
 
karthick Soundararaj
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not a send redirect to a servlet which in turn redirects to another servlet? that way there are two continous redirects although 2 servlets are involved here
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!