| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/14/2010 10:14:58
|
hissimr
Newbie
Joined: 01/14/2010 10:14:15
Messages: 2
Offline
|
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)
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/14/2010 10:44:33
|
stdunbar
Newbie
![[Avatar]](/images/avatar/a87ff679a2f3e71d9181a67b7542122c.png)
Joined: 06/22/2005 14:51:37
Messages: 849
Location: Superior, CO, USA
Offline
|
Can you post your version of loginbean.jsp? It sounds like it is a simple fix.
|
Thanks for using the forums at hotjoe.com |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/14/2010 11:05:43
|
hakz
Newbie
Joined: 01/14/2010 10:12:39
Messages: 1
Offline
|
deleted
This message was edited 2 times. Last update was at 01/14/2010 11:09:40
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/14/2010 11:10:24
|
stdunbar
Newbie
![[Avatar]](/images/avatar/a87ff679a2f3e71d9181a67b7542122c.png)
Joined: 06/22/2005 14:51:37
Messages: 849
Location: Superior, CO, USA
Offline
|
The problem you're having is a common one - you've incorrectly nested your double quote characters. The code:
is actually invalid. Why? When you specified the "value" parameter you used double quotes to open the HTML value and then double quotes to open the Username parameter.
Instead, use something like:
The only change there is that I'm using single quotes around the "value" as opposed to double quotes.
Notice that even the code formatter in the forum highlights this differently.
This message was edited 1 time. Last update was at 01/14/2010 11:11:01
|
Thanks for using the forums at hotjoe.com |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/14/2010 11:48:56
|
hissimr
Newbie
Joined: 01/14/2010 10:14:15
Messages: 2
Offline
|
I did this, but I get this error message now
That class is the same as the website loginbean.java.
Even with this, I can't see where in the login.java file on the roseindia.net page that it takes the data from the above bean and uses it to check with the database.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/14/2010 11:51:32
|
stdunbar
Newbie
![[Avatar]](/images/avatar/a87ff679a2f3e71d9181a67b7542122c.png)
Joined: 06/22/2005 14:51:37
Messages: 849
Location: Superior, CO, USA
Offline
|
You've got a case issue. Use
to set the property. JSP will be looking for "setUsername" with that call and that is what you want.
|
Thanks for using the forums at hotjoe.com |
|
|
 |
|
|