• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problems in creating stuts 2 validation.xml in netbeans

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch!

I'm moving this thread to our IDEs forum since it's a Netbeans specific issue.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic