geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viola lu <viola...@gmail.com>
Subject How use database security realm in JSF
Date Wed, 15 Apr 2009 02:30:35 GMT
Hi,ALL:

 i created a database security realm following link:
http://cwiki.apache.org/GMOxDOC20/database-sql-realm.html,and create a
dynamic web application, create login/register pages using JSF,  login is
controlled by loginbean and regsiterbean which authorizes user/password by
connecting to database, but i want to use database security realm to
verify user login like this:

 <login-config>
      <auth-method>FORM</auth-method>
      <realm-name>MYREALM</realm-name>
      <form-login-config>
         <form-login-page>login.jsp</form-login-page>
         <form-error-page>login_error.jsp</form-error-page>
      </form-login-config>
    </login-config>
But it seems, login action always call loginbean not realm to authorize.
Something is missing?Thanks.

-- 
viola

Mime
View raw message