You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rapsy <ro...@gmail.com> on 2007/10/04 20:27:27 UTC

Struts validation error on Jdeveloper 10.1.3.3


Hi,

I am using struts 1.3.8 for my application. I am using Oracle Jdeveloper IDE
ver 10.1.3.3.0. 
I have created the following validation in validation.xml file. 

<field property="size" depends="floatRange">            
            <msg name="floatRange" key="error.SizeRange" />            
            <arg1 name="floatRange" key="${var:min}" resource="false"/>
            <arg2 name="floatRange" key="${var:max}" resource="false"/>
            <var><var-name>min</var-name><var-value>0</var-value></var>
           
<var><var-name>max</var-name><var-value>999999999</var-value></var>
</field>

When I run my application on JDeveloper I get the following list of errors.
(Error) Invalid element 'arg1' in content of 'field', expected elements
'[msg, arg, var]'.
(Error) Element 'arg1' used but not declared.
XML-20137: (Error) Attribute 'name' used but not declared.

Can someone tell me why I am getting these errors? Thank you!



-- 
View this message in context: http://www.nabble.com/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13045841
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts validation error on Jdeveloper 10.1.3.3

Posted by rapsy <ro...@gmail.com>.

I don't think that matters but I gave a try just in case. The error message
is now changed to:
(Error) Invalid element 'arg0' in content of 'field', expected elements
'[msg, arg, var]'.

Thanks for your reply!

Cesar Arevalo wrote:
> 
> Hey Rapsy,
> 
> just a quick thought, shouldn't the arguments start at index 0? this
> meaning that you should have 
> 
>            <arg0 name="floatRange" key="${var:min}" resource="false"/>
>             <arg1 name="floatRange" key="${var:max}" resource="false"/>
> 
> ??
> 
> -Cesar
> 
> 
> ----- Original Message ----
> From: rapsy <ro...@gmail.com>
> To: user@struts.apache.org
> Sent: Thursday, October 4, 2007 11:27:27 AM
> Subject: Struts validation error on Jdeveloper 10.1.3.3
> 
> 
> 
> Hi,
> 
> I am using struts 1.3.8 for my application. I am using Oracle Jdeveloper
> IDE
> ver 10.1.3.3.0. 
> I have created the following validation in validation.xml file. 
> 
> <field property="size" depends="floatRange">            
>             <msg name="floatRange" key="error.SizeRange" />            
>             <arg1 name="floatRange" key="${var:min}" resource="false"/>
>             <arg2 name="floatRange" key="${var:max}" resource="false"/>
>             <var><var-name>min</var-name><var-value>0</var-value></var>
>            
> <var><var-name>max</var-name><var-value>999999999</var-value></var>
> </field>
> 
> When I run my application on JDeveloper I get the following list of
> errors.
> (Error) Invalid element 'arg1' in content of 'field', expected elements
> '[msg, arg, var]'.
> (Error) Element 'arg1' used but not declared.
> XML-20137: (Error) Attribute 'name' used but not declared.
> 
> Can someone tell me why I am getting these errors? Thank you!
> 
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13045841
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Struts-validation-error-on-Jdeveloper-10.1.3.3-tf4570539.html#a13046682
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org