struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <pbened...@apache.org>
Subject Re: problem with regex validator
Date Tue, 19 Mar 2013 20:39:22 GMT
[^&lt;&gt;] means any character that is not the angled brackets. This is
correct syntax for XML encoding.

Try also using the beginning and ending meta-characters:

^[^&lt;&gt;]$

Paul

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

> Hi Chris, I tried with the regex that you suggested but it did not work.
> any way i am fed up understanding that validator so i have written my own
> and it works fine. Thanks all of you for helping me.
>
>
> On Wed, Mar 20, 2013 at 12:30 AM, Chris Pratt <thechrispratt@gmail.com
> >wrote:
>
> > I'm pretty sure you can't use CDATA inside an attribute value.  Have you
> > tried: "[^&lt;&gt;]"
> >   (*Chris*)
> >
> >
> > On Tue, Mar 19, 2013 at 8:52 AM, Muralidhar Yaragalla <
> > java.yaragalla@gmail.com> wrote:
> >
> > > I have added the following to log4j
> > >
> > > log4j.logger.com.opensymphony.xwork2.validator.validators=debug
> > >
> > > But it doe not print anything on console. The logger was set for
> console
> > > and for file.(both appenders)
> > >
> > >
> > > On Tue, Mar 19, 2013 at 8:56 PM, Lukasz Lenart <
> lukaszlenart@apache.org
> > > >wrote:
> > >
> > > > 2013/3/19 Muralidhar Yaragalla <java.yaragalla@gmail.com>:
> > > > > Then i tried "jhbkkjnklj" this but no validation.
> > > > >
> > > > > when i press the submit button of the form the following log is
> being
> > > > > generated on the server
> > > > >
> > > > > 2013-03-19 20:48:49 DEBUG cache:81 -
> > > > > "template/xhtml/fielderror.ftl"["en_US",UTF-8,parsed]  no source
> > found.
> > > > > 2013-03-19 20:48:49 DEBUG cache:81 -
> > > > > "template/simple/fielderror.ftl"["en_US",UTF-8,parsed]  using
> cached
> > > > since
> > > > >
> > > >
> > >
> >
> jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ums/WEB-INF/lib/struts2-core-2.3.12.jar!/template/simple/fielderror.ftl
> > > > > didn't change.
> > > > >
> > > > >
> > > > > Is there any problem in this logs?
> > > >
> > > > Could you enable DEBUG level just for the RegexFieldValidator and not
> > > > for the whole framework?
> > > >
> > > >
> > > > Regards
> > > > --
> > > > Ɓukasz
> > > > + 48 606 323 122 http://www.lenart.org.pl/
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Thanks And Regards,
> > > *Muralidhar Yaragalla.
> > > *
> > >
> >
>
>
>
> --
> Thanks And Regards,
> *Muralidhar Yaragalla.
> *
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message