> Try Forwarding the request intstead... if the origional request was a
> POST then the forwarded one will be as well.
> Matt Goss

>From what I gather from the specs -- and by the lack of this working in
Tomcat -- you cannot forward to another system.  RequestDispatcher.forward()
appears to be limited to a particular context only.

I tried to use the
getServletConfig().getServletContext().getContext(https://another.computer.c
om/) returns 'null' so I guess I can't get a context object for a URL that's
not in the current tomcat server.

Recall, I've got tomcat running on host1.com and would like to validate a
login while on host1.com, and if all's okay, send them to host2.com. But I
don't want host2.com to allow the user to come if they just typed in the URL
directly, so I was hoping to pass "authorization data" from host1 to host2,
but that info is probably too big to fit directly in a URL, which means that
sendRedirect probably won't work for me.

Is this even possible?  It's a basic scheme of "single signon" so that when
you sign in on host1.com, you can get to host2.com and it's webapp without
having to login again.

David


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to