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...@egovernments.org

Re: common validator

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

Re: How to validate multiple fields with the same name

2013-03-25 Thread Muralidhar Yaragalla
On 25 March 2013 16:25, Muralidhar Yaragalla java.yaraga...@gmail.com wrote: Hi can you explain in brief how to do with interceptor(built in)? On Mon, Mar 25, 2013 at 2:13 AM, Pranava Swaroop stalin.pran...@gmail.comwrote: It could be done with buit in interceptors using configuration

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 lukaszlen...@apache.orgwrote: 2013/3/25 Muralidhar Yaragalla java.yaraga...@gmail.com: Hi Thanks for this.But i am aware of this info I mean the normal validation methods. I repeat and the important

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 stalin.pran...@gmail.comwrote: It could be done with buit in interceptors using configuration files or using the programming On Monday, 25 March 2013, Muralidhar Yaragalla

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. *

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
(or informational message) 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. It as to be added in validate method when

Re: when to use Action Errors and ActionMessages

2013-03-21 Thread Muralidhar Yaragalla
-field specific. So If you have an error (or informational message) 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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
=maurizio.cucchiara Maurizio Cucchiara On 19 March 2013 08:31, Muralidhar Yaragalla java.yaraga...@gmail.com wrote: Hi I am defining a reg which is valid in java. The regex is [^]+. But when i use this with regex validator it displays error. The error is It should consist well formed

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: I tried with what you suggested

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
/19 Muralidhar Yaragalla java.yaraga...@gmail.com: 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. You should think about taking some XML experience - CDATA has nothing to do with regex

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: If i pass ![CDATA[[^]+]] in the xml file to the regex validator the xml file

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: If i pass ![CDATA

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Now I tried ![CDATA[^[]+]] 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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: I tried but it shows up

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: The regex that i am trying works in java and also

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Hi I am using s:fielderror/ 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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: Now I tried ![CDATA[^[]+]] this. when I did

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: Hi I am using s:fielderror/ in my jsp. The value that i entered in the field is hjghj(without quotes). So everything is ok, hjghj matches ^[]+ and there is no error. http://regexp.pl

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Muralidhar Yaragalla java.yaraga...@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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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.yaraga...@gmail.com wrote: I have added the following to log4j log4j.logger.com.opensymphony.xwork2.validator.validators=debug But it doe

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
. 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.yaraga...@gmail.com wrote: Hi Chris, I tried with the regex that you suggested but it did not work. any way i am fed

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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 for logging. On Wed, Mar 20, 2013 at 2:09 AM, Paul

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 davelnew...@gmail.com 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 java.yaraga...@gmail.com wrote: Hi, All the other

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: 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

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 pbened...@apache.org 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: As far as i remember commons

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: As far as i remember commons logging is one of the implementation of log4j

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

2013-03-19 Thread Muralidhar Yaragalla
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 the same form is being displayed with error messages as input is configured to the same form but the form field values are disappearing. How

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: something like apple (without quotes). Which version of Struts do you use? Regards -- Łukasz + 48 606 323 122 http

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

2013-03-19 Thread Muralidhar Yaragalla
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 the same form is being displayed with error messages as input is configured to the same form but the form field values are disappearing. How can

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: I have tried this action name=createVotingTopic

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: 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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: I i use just plain input error messages getting printed but the values of the fields

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: I am not sure who is toy. *you Regards -- Łukasz + 48 606 323 122 http

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

2013-03-19 Thread Muralidhar Yaragalla
validation error then it is getting directed to the same jsp but the values are not retained. am i doing something wrong? On Wed, Mar 20, 2013 at 3:55 AM, Lukasz Lenart lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: ok I understood. I will remove but how

Re: problem with regex validator

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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
your original regex. Did you try my regex as is or did you fix it like [lt;gt;]+ ? (*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 did not work. any way i am fed up understanding

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 !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

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 lukaszlen...@apache.orgwrote: 2013/3/19 Muralidhar Yaragalla java.yaraga...@gmail.com: ok I understood. I will remove but how to retain values

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

2013-03-19 Thread Muralidhar Yaragalla
to take other than 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 problems only this is remaining. Any idea how

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

2013-03-19 Thread Muralidhar Yaragalla
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 remaining. Any idea how to retain the field values? On Wed, Mar 20, 2013 at 3:55 AM, Lukasz Lenart lukaszlen

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 lukaszlen...@apache.orgwrote: 2013/3/18 Muralidhar Yaragalla java.yaraga

Re: problem in validation with struts 2.3.1

2013-03-18 Thread Muralidhar Yaragalla
Muralidhar Yaragalla java.yaraga...@gmail.com: //The following is my VotingTopicAction-validation.xml Is this file in com/ymd/ums/lv/action folder? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl

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
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 davelnew...@gmail.com wrote: The regex validator? On Mon, Mar 18, 2013 at 4:44 PM, Muralidhar Yaragalla java.yaraga...@gmail.com wrote: The following