I am going through a tutorial I found on roseindia.net, which can be found here
Login Authentication using Bean and Servlet In JSPfollowing the tutorial I found there was a small syntax error in the file loginbean.jsp causing the error:
org.apache.jasper.JasperException: /jspbeanlogin/loginbean.jsp(9,57) Attribute value request.getParameter("userName") is quoted with " which must be escaped when used within the value
org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:40)
to be thrown. I have replaced the double quotes with single quotes and have resolved this syntax issue. I have now run into another problem. The loginbean.jsp is throwing the error:
org.apache.jasper.JasperException: /jspbeanlogin/loginbean.jsp(7,0) The value for the useBean class attribute logbean.LoginBean is invalid.
I have recompiled the LoginBean.java file a few different times in both the /WEB-INF/classes and /WEB-INF/classes/logbean folders and am still having this error. Here is the contents of my loginbean.jsp file which is throwing the error:
and here is the contents of the JavaBean.java file the javabean.jsp file is trying to resolve:
I know others have got this thing working but I have hit a wall. I am very excited to get this working because this stuff looks like fun. Thanks for the help.