Yes. I am not sure whether server side validations are happening or not. I
feel they are not happening because i dont see error messages in the front
end(in the browser).
On Tue, Mar 19, 2013 at 1:18 AM, Lukasz Lenart wrote:
> 2013/3/18 Muralidhar Yaragalla :
> > //The follow
I think the problem is i am not using any struts tags in my jsp. when i use
"
" this tag the messages are showing up. I thought
struts automatically displays error messages
next to the field.
On Tue, Mar 19, 2013 at 1:18 AM, Lukasz Lenart wrote:
> 2013/3/18 Muralidhar Yaragall
hi I have been searching on net for mask validator examples but could not
found any for 2.3.
--
Thanks And Regards,
*Muralidhar Yaragalla.
*
The following is the example for mask validator in struts 1
mask
^[0-9]*$
Is there any equivalent validator in struts 2.3 where i can use regular
expressions?
On Tue, Mar 19, 2013 at 2:07 AM, Lukasz Lenart wrote:
> 2013/3/18 Muralidhar Yaragalla :
> > hi I have been searching o
I don't see regex validator in validators.xml so do we have to get it from
somewhere?
On Tue, Mar 19, 2013 at 2:17 AM, Dave Newton wrote:
> The regex validator?
>
>
> On Mon, Mar 18, 2013 at 4:44 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
>
I tried with what you suggested. This gives different problem. I don't
think we should think about cdata and all. regex means it should be just
regex.
kindly help in resolving this issue.
On Tue, Mar 19, 2013 at 1:17 PM, Maurizio Cucchiara
wrote:
> Did you already try to put regex inside a cdat
to "[^<>]" this , (which is also valid for most of the regex
engines including java.) will be appreciated. Thanks in advance.
On Tue, Mar 19, 2013 at 4:59 PM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > I tried with what you suggested. This gives d
If i pass "" in the xml file to the regex validator the
xml file is not generating any error but then the input is allowing the "<"
and ">" characters. That means still there is problem. Any help on this?
On Tue, Mar 19, 2013 at 4:59 PM, Lukasz Lenart wrot
I tried but it shows up the earlier problem. (formatted character data)
On Tue, Mar 19, 2013 at 5:45 PM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > If i pass "" in the xml file to the regex validator the
> > xml file is not generating any error but t
The regex that i am trying works in java and also works with most regex
engines but that is not working with regex validator.
On Tue, Mar 19, 2013 at 5:45 PM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > If i pass "" in the xml file to the regex validator the
Now I tried "" this. when I did this the xml file does
not show any error but the problem is validation does not happen.
On Tue, Mar 19, 2013 at 7:51 PM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > I tried but it shows up the earlier problem. (formatted char
Do u want me to change the application log4j level to debug or is there
anything that i should do in struts?
On Tue, Mar 19, 2013 at 7:54 PM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > The regex that i am trying works in java and also works with most regex
> > e
Hi I am using in my jsp. The value that i entered in the
field is "<>hjghj"(without quotes).
On Tue, Mar 19, 2013 at 8:22 PM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > Now I tried "" this. when I did this the xml file does
> > not sho
.
Is there any problem in this logs?
On Tue, Mar 19, 2013 at 8:39 PM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > Hi I am using in my jsp. The value that i entered in the
> > field is "<>hjghj"(without quotes).
>
> So everything is ok, <&
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 wrote:
> 2013/3/19 Muralidhar Yaraga
7;t use CDATA inside an attribute value. Have you
> tried: "[^<>]"
> (*Chris*)
>
>
> On Tue, Mar 19, 2013 at 8:52 AM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> > I have added the following to log4j
> >
> > log4j.logger
t syntax for XML encoding.
>
> Try also using the beginning and ending meta-characters:
>
> ^[^<>]$
>
> Paul
>
> On Tue, Mar 19, 2013 at 3:35 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> > Hi Chris, I tried with the regex tha
gt; is working?
>
> Paul
>
> On Tue, Mar 19, 2013 at 3:49 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> > Nothing works. I am not sure why? but then I am good with my custom
> > validator for regex. One note is that xwork classes dont use log4j
ok. will do.
On Wed, Mar 20, 2013 at 2:29 AM, Dave Newton wrote:
> Put a SSCCE and its pom on github/etc and we'll take a look. AFAIK regex
> validationworks fine for me.
> On Mar 19, 2013 4:57 PM, "Muralidhar Yaragalla" >
> wrote:
>
> > Hi, All the o
:
> 2013/3/19 Muralidhar Yaragalla :
> > 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 appen
something like "apple<>" (without quotes).
On Wed, Mar 20, 2013 at 3:02 AM, Paul Benedict wrote:
> What input value are you testing against the regex?
>
> On Tue, Mar 19, 2013 at 4:28 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> &
sorry for my comment. what you said is right. Thank you for that info.
On Wed, Mar 20, 2013 at 3:04 AM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > As far as i remember commons logging is one of the implementation of
> log4j.
> > but xworks classes does n
o a view (JSP, freemarker,
> etc.) whose view knows how to render the appropriate model object in the
> action.
>
> Paul
>
> On Tue, Mar 19, 2013 at 4:32 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> > Hi when there is validation error in the fa
i use struts 2.3.12
On Wed, Mar 20, 2013 at 3:15 AM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > something like "apple<>" (without quotes).
>
> Which version of Struts do you use?
>
>
> Regards
> --
> Łuka
iew (JSP, freemarker,
> etc.) whose view knows how to render the appropriate model object in the
> action.
>
> Paul
>
> On Tue, Mar 19, 2013 at 4:32 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> > Hi when there is validation error in the farm th
I i use just plain input error messages getting printed but the values of
the fields are not retained.
On Wed, Mar 20, 2013 at 3:43 AM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > I have tried this
> >
> > > class="com.ymd.ums.lv.action.Votin
I am not sure who is "toy".
On Wed, Mar 20, 2013 at 3:44 AM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > i use struts 2.3.12
>
> Could you show how did toy define regex validator? As I said,
> expression param name was changed to regex
>
>
>
ok I understood. I will remove but how to retain values. any idea?
On Wed, Mar 20, 2013 at 3:49 AM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > I i use just plain input error messages getting printed but the values of
> > the fields are not retained.
>
> Yo
are u asking me to show how i have written custom validator for regex?
On Wed, Mar 20, 2013 at 3:50 AM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > I am not sure who is "toy".
>
> *you
>
>
> Regards
> --
> Łukasz
>
AM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > ok I understood. I will remove but how to retain values. any idea?
>
> They will retain automatically
>
>
> Regards
> --
> Łukasz
> + 48 606
, Mar 20, 2013 at 3:59 AM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > 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
&g
regex. Did you try my
> regex as is or did you fix it like "[<>]+" ?
> (*Chris*)
>
>
> On Tue, Mar 19, 2013 at 1:35 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> > Hi Chris, I tried with the regex that you suggested but it d
>
>
>
>
> On Tue, Mar 19, 2013 at 3:50 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> > This is how i did
> >
> > 1.0.2//EN" "
> > http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";>
> >
> >
Almost sorted out all the problems only this is remaining. Any idea how to
retain the field values?
On Wed, Mar 20, 2013 at 3:55 AM, Lukasz Lenart wrote:
> 2013/3/19 Muralidhar Yaragalla :
> > ok I understood. I will remove but how to retain values. any idea?
>
> They will retai
not
> redirecting.
>
> If the action is hit and the params interceptor is working, they'll be
> there.
>
> Dave
>
>
>
> On Tue, Mar 19, 2013 at 7:11 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> > Almost sorted out all the probl
params interceptor is working, they'll be
> > there.
> >
> > Dave
> >
> >
> >
> > On Tue, Mar 19, 2013 at 7:11 PM, Muralidhar Yaragalla <
> > java.yaraga...@gmail.com> wrote:
> >
> > > Almost sorted out all the problems only this is
Hi when should we add an action error or action message. I understood field
error. It as to be added in validate method when there is any field error
in the form( I mean validation error) but when to use other?
--
Thanks And Regards,
*Muralidhar Yaragalla.
*
ge) to deliver to the user you would
> use these methods.
> (*Chris*)
>
>
> On Thu, Mar 21, 2013 at 12:16 PM, Muralidhar Yaragalla <
> java.yaraga...@gmail.com> wrote:
>
> > Hi when should we add an action error or action message. I understood
> field
> > error.
Thank you so much.
On Fri, Mar 22, 2013 at 1:47 AM, Chris Pratt wrote:
> If it has action messages, everything proceeds as usual. If it has action
> errors, the validation system exits with the return code "input".
> (*Chris*)
>
>
> On Thu, Mar 21, 2013 at 1
Hi In my action class i need to get all the results mapped to that
particular action calss, how to do that?
--
Thanks And Regards,
*Muralidhar Yaragalla.
*
custom valiation in my validate() method inside action class.
--
Thanks And Regards,
*Muralidhar Yaragalla.
*
Hi can you explain in brief how to do with interceptor(built in)?
On Mon, Mar 25, 2013 at 2:13 AM, Pranava Swaroop
wrote:
> It could be done with buit in interceptors using configuration files or
> using the programming
>
> On Monday, 25 March 2013, Muralidhar Yaragalla wrote:
&g
;
>
>
> Username is required
>
>
>
>
> Password is required
>
>
>
>
> This is one of the easiest solutions to isolate the most commonly used
> validations for the fields using con
Hi thanks for this. It is really helpful.
On Tue, Mar 26, 2013 at 12:13 AM, Lukasz Lenart wrote:
> 2013/3/25 Muralidhar Yaragalla :
> > Hi Thanks for this.But i am aware of this info I mean the normal
> validation
> > methods. I repeat and the important point is that all t
--**-
> To unsubscribe, e-mail:
> user-unsubscribe@struts.**apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
--
Thanks And Regards,
*Muralidhar Yaragalla.
*
The following is the best
http://struts.apache.org/release/2.3.x/docs/home.html
There is nothing better than this.
*Thanks And Regards,*
Muralidhar Yaragalla.*
(Visit My Blog <http://yaragalla.blogspot.in>)
*
On Fri, Jun 21, 2013 at 7:01 PM, Sreekanth S. Nair <
sreekanth.n...@egovern
46 matches
Mail list logo