File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes problems in creating stuts 2 validation.xml in netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "problems in creating stuts 2 validation.xml in netbeans" Watch "problems in creating stuts 2 validation.xml in netbeans" New topic
Author

problems in creating stuts 2 validation.xml in netbeans

Manish Shinde
Ranch Hand

Joined: Mar 30, 2011
Posts: 39
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
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19725
    
  20

Welcome to the Ranch!

I'm moving this thread to our IDEs forum since it's a Netbeans specific issue.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
 
subject: problems in creating stuts 2 validation.xml in netbeans