Click to See Complete Forum and Search --> : Get data from Login form on webpage


rosebabz
January 14th, 2010, 11:06 AM
Hi guys, I'm using this guide and creating a login page for my site. I am using a jdbc-odbc bridge and have changed the connection. What I can't figure out is how to get the data from the bean to the login class (the class that connects to the database.

Whenever I try to run the site, I get the error message

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)

rosebabz
January 14th, 2010, 11:08 AM
the site http://www.roseindia.net/jsp/loginbean.shtml

dlorde
January 14th, 2010, 01:29 PM
I think the error message means what it says - when using double-quotes inside a JSP scriptlet, you must escape them (because double-quotes indicate the end of the scriptlet).

By viewing the old we learn the new...
Chinese proverb