I am developing an application using Spring Web MVC, Hibernate ..
Now I have my login page configuration, for example:
<bean name="/uservalidate.htm" class="UserValidateFormController">
<property name="sessionForm" value="true"/>
<property name="commandName" value="User"/>
<property name="commandClass" value="User"/>
<property name="formView" value="login"/>
<property name="userSecurityProcessor" ref="IUserSecurityProcessor"/>
<property name="validator">
<bean class="LoginValidator"/>
</property>
<property name="successView" value="layout.jsp"/>
Now, after sending from the page login, the control goes to the Validator ie LoginValidator class ..
But in this class I do not get a link to my userSecurityProcessor, which gives me data on the server side.
Can anyone suggest how I can verify the Username and Password in my Validator .. class?
Thanks in advance.
source
share