I am working on
struts 2.I am using NetBeans 6.5 and
Tomcat 6.0.
I have added following struts 2.0 plugins in netbeans
org-netbeans-modules-web-frameworks-struts2lib20011.nbm
org-netbeans-modules-web-frameworks-struts2.nbm
I have also added xwork-core-2.1.6.jar and struts2-core-2.1.6.jar.
I have created small login application. I m facing some problems in field validation part of EmployeeLogin.jsp page having only two text fields username and password.
Here is problem
1)For validation of these text fields I need to create login-validation.xml.
So I chose xml file ,gave name login-validation.xml & put it in src then
clicked on next . I got new window for selecting document type having three options
• Well-Formed Document
• DTD-Constrained Document
• XML Schema-Constrained Document.
I chose DTD-Constrained Document & clicked on next.
Now here new window showing DTD public id has drop down list showing available public ids now for login-validation.xml requires
-//OpenSymphony Group//XWork Validator 1.0.2//EN as public id but drop down list doesn’t contain it.
login-validation.xml’s doctype should look like this
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
How to add that?
Regards,
Manish