Re: problem in validation with struts 2.3.1

2013-03-18 Thread Muralidhar Yaragalla
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

Re: problem in validation with struts 2.3.1

2013-03-18 Thread Muralidhar Yaragalla
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

does struts 2.3 support mask validator?

2013-03-18 Thread Muralidhar Yaragalla
hi I have been searching on net for mask validator examples but could not found any for 2.3. -- Thanks And Regards, *Muralidhar Yaragalla. *

Re: does struts 2.3 support mask validator?

2013-03-18 Thread 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

Re: does struts 2.3 support mask validator?

2013-03-18 Thread Muralidhar Yaragalla
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: > >

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
. 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, <&

Re: problem with regex validator

2013-03-19 Thread 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 appenders) On Tue, Mar 19, 2013 at 8:56 PM, Lukasz Lenart wrote: > 2013/3/19 Muralidhar Yaraga

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
: > 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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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: > > &

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
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

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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 > > >

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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 >

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
, 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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
> > > > > 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";> > > > >

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
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

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
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

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
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

when to use Action Errors and ActionMessages

2013-03-21 Thread Muralidhar Yaragalla
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. *

Re: when to use Action Errors and ActionMessages

2013-03-21 Thread 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.

Re: when to use Action Errors and ActionMessages

2013-03-21 Thread Muralidhar Yaragalla
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

question on results?

2013-03-23 Thread Muralidhar Yaragalla
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. *

How to validate multiple fields with the same name

2013-03-24 Thread Muralidhar Yaragalla
custom valiation in my validate() method inside action class. -- Thanks And Regards, *Muralidhar Yaragalla. *

Re: How to validate multiple fields with the same name

2013-03-24 Thread 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

Re: How to validate multiple fields with the same name

2013-03-25 Thread Muralidhar Yaragalla
; > > > 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

Re: How to validate multiple fields with the same name

2013-03-25 Thread Muralidhar Yaragalla
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

Re: common validator

2013-03-26 Thread Muralidhar Yaragalla
--**- > To unsubscribe, e-mail: > user-unsubscribe@struts.**apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Thanks And Regards, *Muralidhar Yaragalla. *

Re: Best Advanced Struts2 Book

2013-06-21 Thread 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