Link to home
Start Free TrialLog in
Avatar of ncsvietnam
ncsvietnam

asked on

Hi expert !!

I have a structure file using Struts, server TOmcat, Mysql:
Login.jsp------->LoginForm.java------->LoginAction.java-------LoginDTO.java--------->LoginBean.java

(Strust-config.xml, Validation.xml, Validator-rules.xml)......

i want known code blame with username and password not null on form Login.jsp using file validator-rules.xml and validation.xml. And recommend with part code in which file.
thanks
.
ASKER CERTIFIED SOLUTION
Avatar of vsubram2
vsubram2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vsubram2
vsubram2

where in the struts-config .xml
 <form-bean name="loginForm" type="fully qualified class name Loginorm"/>
and the same loginForm should be used in ur action .
Avatar of ncsvietnam

ASKER

but. and call message err in Login.jsp
and write code adequate.thanks.