You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Podhigai Thendral <pi...@rediffmail.com> on 2002/10/15 13:48:34 UTC

Newbie - problem with validator

Hi All,

I have the following logic:notPresent tags in my index.html.

<logic:notPresent name="org.apache.struts.action.MESSAGE"
scope="application">
   <font color="red">
     ERROR:  Application resources not loaded -- check servlet
container
     logs for error messages.
   </font>
</logic:notPresent>

<logic:notPresent
name="org.apache.commons.validator.VALIDATOR_RESOURCES"
scope="application">
   <font color="red">
     ERROR:  Validator resources not loaded -- check Commons
Logging
     logs for error messages.
   </font>
</logic:notPresent>

What do these 'org.apache.struts.action.MESSAGE' and
'org.apache.commons.validator.VALIDATOR_RESOURCES' signify? I
tried but could not find what they are. I am looking for a 
working
example which is capable of doing client and serverside
validation.

Any help is appreciated.
Thanks in advance




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Newbie - problem with validator

Posted by Emmanuel Boudrant <b7...@yahoo.fr>.
These tags check if the object keyed with string "org.apache.struts.action.MESSAGE" is present in
application scope.

it's equivalent to

<%
 if ( application.getAttribute("org.apache.struts.action.MESSAGE") == null ) {
%>
    <font color="red">
      ERROR:  Application resources not loaded -- check servlet container logs for error messages.
    </font>
<%
 }
%>


-emmmanuel

 --- Podhigai Thendral <pi...@rediffmail.com> a écrit : > Hi All,
> 
> I have the following logic:notPresent tags in my index.html.
> 
> <logic:notPresent name="org.apache.struts.action.MESSAGE"
> scope="application">
>    <font color="red">
>      ERROR:  Application resources not loaded -- check servlet
> container
>      logs for error messages.
>    </font>
> </logic:notPresent>
> 
> <logic:notPresent
> name="org.apache.commons.validator.VALIDATOR_RESOURCES"
> scope="application">
>    <font color="red">
>      ERROR:  Validator resources not loaded -- check Commons
> Logging
>      logs for error messages.
>    </font>
> </logic:notPresent>
> 
> What do these 'org.apache.struts.action.MESSAGE' and
> 'org.apache.commons.validator.VALIDATOR_RESOURCES' signify? I
> tried but could not find what they are. I am looking for a 
> working
> example which is capable of doing client and serverside
> validation.
> 
> Any help is appreciated.
> Thanks in advance
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Newbie - problem with validator

Posted by Emmanuel Boudrant <b7...@yahoo.fr>.
> I tried but could not find what they are. I am looking for a 
> working
> example which is capable of doing client and serverside
> validation.

Check the examples in Struts 1.1 distribution, the archive struts-validator.war contain an example
about validator.

-emmanuel

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>