InterviewSolution
Saved Bookmarks
| 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!!!" ); |
|