Hi all,
I'd like to know if there any way to display pop up window contains error message? I can do it with javascript embedded in
jsp, but I wonder if I can use pure
java (I mean, without javascript at all).
For example, please examine following snippet :
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
try {
String fullName = request.getParameter(ApplicantEntryConstant.PARAM_FULL_NAME);
if (fullName == null || fullName.length() == 0) {
// show pop up message contains string
// "Full name must be filled"
}
} catch (SQLException ex) {
logger.getLogger().error("Error inserting applicant");
}
}