1.

How to send an authentication error from a servlet?

Answer»

We can use setStatus(statuscode) method of HttpServletResponse to send an authentication error.

// Set error code and reason.response.sendError(407, "Need authentication!!!" );


Discussion

No Comment Found