401 « Security « JSP-Servlet Q&A





1. JSP 401 authentication    stackoverflow.com

I'd like to implement a Java/JSP solution to return a client response to a web server that responded a 401 error to me when I try a wget for a resource. How ...

2. 401 Unauthorized when failing security constraint of servlet?    java.net

>Hi, > >I have a servlet with a security constraint in its web.xml deployed on >GlassFish. >Works great, clients with a trusted certificate can access the >servlet, and those without see nothing (no response). > >But I'd like to play nice and respond with a 401 Unauthorized instead >of an empty response to those without, how can I do that? >(I ...