vikrant S wrote:
Initially I did not check for null textfield and I was able to validate the
username and password directly from database.but When I applied validate
method in my action class It began to validate for null fields but not for
stored username and password. I am pasting my code..
t;public void setUserid(String userid) {
>this.userid = userid;
>}
>public String getPwd() {
>return pwd;
>}
>public void setPwd(String pwd) {
> this.pwd = pwd;
>}
>
> }
blic void setPwd(String pwd) {
this.pwd = pwd;
}
}
And my struts.xml is as follows:-
http://struts.apache.org/dtds/struts-2.0.dtd";>
success.jsp
/login.jsp
--
View this message in context:
http://old.nabble.com/Trouble-with-struts2-validation-tp26316069p26316069.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr
4 matches
Mail list logo