This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes struts-blank.war importing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts-blank.war importing" Watch "struts-blank.war importing" New topic
Author

struts-blank.war importing

dayanand chowdhary
Greenhorn

Joined: Jun 18, 2011
Posts: 4
when i import struts-blank.war file from jakarata-struts-1.1, i am getting an error in validation.xml,
which is there in WEB-INF folder, can any one help out


validation.xml :-

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">

<form-validation>

<!--
This is a blank Validator form file with a commented examples.
-->

<global>

<!-- An example global constant
<constant>
<constant-name>postalCode</constant-name>
<constant-value>^\d{5}\d*$</constant-value>
</constant>
end example-->

</global>

<formset> i got err in this line stating that-->the content element type “formset” is incomplete,it must match “(constant *,form+)”

<!-- An example form
<form name="logonForm">
<field
property="username"
depends="required">
<arg0 key="logonForm.username"/>
</field>
<field
property="password"
depends="required,mask">
<arg0 key="logonForm.password"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z]*$</var-value>
</var>
</field>
</form>
end example form -->

</formset>

<!-- An example formset for another locale
<formset language="fr">

<constant>
<constant-name>postalCode</constant-name>
<constant-value>^[0-9a-zA-Z]*$</constant-value>
</constant>

</formset>
-->

</form-validation>

what mistake i have done.?
can any one help me out.

thanks in advance
Daya

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts-blank.war importing
 
Similar Threads
problem in Struts Declerative validations
Exception while loading the validation.xml in strusts
Struts and Vlidation
How to practice struts in Eclipse
Error using Struts Validator