You should put this into a request parameter and pass (forward / include
- you should try which fits best) it to the JSP page.
It would be something like this:
request.setAttribute("error", "User Name Already Exists.");
On the JSP page, you then check if the attribute "error" is set and