Results 1 to 3 of 3
Thread: struts-blank.war
- 06-20-2011, 09:09 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 61
- Rep Power
- 0
struts-blank.war
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></global>
<!-- An example global constant
<constant>
<constant-name>postalCode</constant-name>
<constant-value>^\d{5}\d*$</constant-value>
</constant>
end example-->
<formset>end example form -->
<!-- An example form</form>
<form name="logonForm">
<field<field
property="username"
depends="required">
<arg0 key="logonForm.username"/>
</field>
property="password"
depends="required,mask">
<arg0 key="logonForm.password"/>
<var>
<var-name>mask</var-name></var>
<var-value>^[0-9a-zA-Z]*$</var-value>
</field>
</formset>
<!-- An example formset for another locale</formset>
<formset language="fr">
<constant>
<constant-name>postalCode</constant-name></constant>
<constant-value>^[0-9a-zA-Z]*$</constant-value>
-->
</form-validation>
in the above bold line(fromset) i got the error stating that:-the content element type “formset” is incomplete,it must match “(constant *,form+)”
what the mistake i have done.?
thanks in advance
dayaLast edited by Dayanand; 06-20-2011 at 09:14 AM.
- 06-20-2011, 11:08 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Your formset is empty.
It either needs at least one <constant> tag (as the second example) or <form> tag.
I doubt the struts-blank was intended to be deployed, but was intended as a skeleton to build on.
- 08-02-2011, 01:08 PM #3
Member
- Join Date
- Feb 2009
- Posts
- 1
- Rep Power
- 0
Hey Deyanand,
Just go through the below link, hope this will helps you to resolve your issue.
Struts Validator Framework Example
Similar Threads
-
Sql insert into blank character
By robyf1 in forum New To JavaReplies: 16Last Post: 06-03-2011, 09:29 PM -
Blank screen
By dewitrydan in forum New To JavaReplies: 14Last Post: 08-12-2010, 05:19 PM -
decorator.jsp problem building Struts Menu in JSP when Struts action is used
By dkirvan in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 04-29-2010, 05:33 AM -
Blank space
By sandy1028 in forum New To JavaReplies: 1Last Post: 04-21-2009, 10:00 AM -
Print a blank space
By susan in forum New To JavaReplies: 2Last Post: 07-30-2007, 01:58 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks