Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Problem with Struts Validator

Reply
Thread Tools

Problem with Struts Validator

 
 
kevarouza@hotmail.com
Guest
Posts: n/a
 
      05-12-2005
Can't seem to get the Struts Validator to load. I'm getting the
following error at Startup. Using Struts 1.2 and Tomcat 3.2.

[ERROR] Digester - Parse Error at line 56 column 68: Element type
"plug-in" must be declared. <org.xml.sax.SAXParseException: Element
type "plug-in" must be declared.>org.xml.sax.SAXParseException: Element
type "plug-in" must be declared.

my struts-config.xml file looks like this:

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

<struts-config>
....other stuff...

<plug-in className="org.apache.struts.validator.ValidatorPl ugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml"/>
</plug-in>

</struts-config>

I looked at the referenced DTD and it does define the "plug-in" element
but for some reason the parser is not validating the XML against the
specified DTD but rather something else. Any ideas on what could be
wrong?

Thanks,
Kevin

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts Validator - creditCard validator smrimell@gmail.com Java 4 02-13-2007 08:32 PM
Resolved: Problem with STRUTS validator mask regexp Roland Java 0 03-31-2005 04:57 PM
Problem with STRUTS validator mask regexp Roland Java 2 03-21-2005 08:37 PM
Tomcat 5.028 Struts problem - struts-config.xml does not start with a "/" character Aleksandar Matijaca Java 2 09-19-2004 03:52 PM
struts javascript validator message problem Alex M Java 3 02-24-2004 12:53 PM



Advertisments