Project

General

Profile

« Previous | Next » 

Revision 49415

Added by Sofia Baltzi over 6 years ago

Add error messages

View differences:

VerificationCodeServlet.java
48 48
            printWriter.close();
49 49

  
50 50
        } else {
51
            request.getSession().setAttribute("message", "Username or verification code are not valid.");
52
            response.sendRedirect("./verify.jsp");
51 53
            // response.sendRedirect("./error.jsp"); or write a message in the session
52 54
        }
53 55

  

Also available in: Unified diff