aspose file tools*
The moose likes Servlets and the fly likes Realm, Eclipse and MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Realm, Eclipse and MySQL" Watch "Realm, Eclipse and MySQL" New topic
Author

Realm, Eclipse and MySQL

Lenny Peter
Ranch Hand

Joined: Apr 22, 2008
Posts: 52
Can anyone see what is wrong here ...

Login.jsp

SmileyServlet



web.xml




Server XML



MySql DB ida

Table1: roles: rolename (student)
Table2: user: username (alen), password(esbjerg)
Table3: userrole: username(alen), rolename(student)


Thanks

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

Can anyone see what is wrong here


Yes, you didn't tell us what the problem is.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Lenny Peter
Ranch Hand

Joined: Apr 22, 2008
Posts: 52
I cannot log in...something is wrong...username or password or codes?

What can I add to my codes to get print out errors in Console?

It should be hidden or not?
<!--
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
-->

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Realm, Eclipse and MySQL