Hello Simone,

Yes, the sendRedirect was what I put in for the 302 case when it was not working. That did help for the redirects. But now I have fixed the code the way you told me to. That works (duh) although I now have to get the outputstream and close it to commit the response for things to work, even if no response body is present.

Thanks for setting me straight.

Cheers,

Silvio


On 01/05/2017 09:45 PM, Simone Bordet wrote:
Hi,

On Thu, Jan 5, 2017 at 9:19 PM, Silvio Bierman
<[email protected]> wrote:
Thank you for the info. Sounds plausible, I will fix that. So sendRedirect
clears everything, sets the status and then then Location header, I guess.
Not sure why you keep mentioning sendRedirect().
You are using sendError() in the pseudo code you posted.

Either case, they each serve a very specific purpose (redirect and
error), so you cannot use them to send a normal response.


_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to