Try:

          <param name="regex">[^&lt;&gt;]+</param>

(*Chris*)




On Tue, Mar 19, 2013 at 3:50 PM, Muralidhar Yaragalla <
java.yaraga...@gmail.com> wrote:

> This is how i did
>
> <!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "
> http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";>
> <validators>
>     <field name="votingTopic.votingTopic">
>      <field-validator type="regex">
>           <param name="expression"><![CDATA[[^<>]+]]></param>
>           <message>The value of bar2 must be in the format <![CDATA[<>]]>
> where x and y are between 0 and 9</message>
>      </field-validator>
>     </field>
> </validators>
>
> Almost I have tried all the suggested combination by the members. It did
> not work.
>
>
> On Wed, Mar 20, 2013 at 3:59 AM, Lukasz Lenart <lukaszlen...@apache.org
> >wrote:
>
> > 2013/3/19 Muralidhar Yaragalla <java.yaraga...@gmail.com>:
> > > are u asking me to show how i have written custom validator for regex?
> >
> > Nope, how did you configure built-in regex validator, the
> *-validation.xml
> > file
> >
> >
> > Regards
> > --
> > Ɓukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
>
> --
> Thanks And Regards,
> *Muralidhar Yaragalla.
> *
>

Reply via email to