jaas j_security_check疑问?
我想简单实现一下jaas的登陆验证,出现了用户名密码明明是正确的,却老是说密码错误,跳到错误的页面,请banq大哥和其他大哥帮我分析一下,这是哪里出的错呢?
应该很有可能是数据库的错误?
我的数据库表如下:
id userName password email role rolegroups
1 qugl abcd quguilai2006@163.com User roles
2 aaa aaa aaa@163.com User roles
login_config.xml里配置如下:
<module-option name="principalsQuery">select password from user where userName=?</module-option>
<module-option name="rolesQuery">select roleid,rolegroup from user where userName=?</module-option>
请帮我分析下,错误出在哪里?弄了很久了,不胜感激!
[该贴被quguilai于2007年06月05日 10:48修改过]