Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-19 Thread Lukasz Lenart
2013/3/20 Omar Ngarigari : > value="%{springSecurity.currentUser}"/> You cannot call interceptor directly, it must be an action. > while (((actionClass = actionClass.getSuperclass()) != null) && > (!isDone)) > { > for (Method method : actionClass.getDeclar

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

2013-03-19 Thread Muralidhar Yaragalla
ok. Now i understand. I am using jstl. I am not using struts tags. On Wed, Mar 20, 2013 at 5:03 AM, Chris Pratt wrote: > Muralidhar, > How are you specifying the form? If you aren't using the (or if you are using the "simple" theme), then you will have to handle the > form value retrieval yo

Re: How to pass the current logged in username to struts2 action from spring security 3

2013-03-19 Thread Omar Ngarigari
I tried your example below using interceptor, but I am having difficult displaying the username value in JSP. I used the User class as follow: public class User private String username; private String password; public String getUsername(){ return username; } public String getPassword(){ return

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

2013-03-19 Thread Chris Pratt
Muralidhar, How are you specifying the form? If you aren't using the wrote: > As stated, there is no particular action you need 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:1

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

2013-03-19 Thread Dave Newton
If you haven't configured any of: * Default interceptor stack, or... * Package-specific interceptor stack, or... * Action-specific stack then you're running the default stack. The default stack is defined in struts-default.xml, contained in the struts2-core jar. It's also on the documentation wik

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

2013-03-19 Thread Muralidhar Yaragalla
where can i see the default interceptors configured. I mean in struts blank war application in struts.xml file there is nothing so where to check what are configured? On Wed, Mar 20, 2013 at 4:49 AM, Dave Newton wrote: > As stated, there is no particular action you need to take other than not >

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

2013-03-19 Thread Dave Newton
As stated, there is no particular action you need 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 problem

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 retain automatically >

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Yahoo.. This is working. when i change the param name "expression" to "regex" as you suggested it is working. Thank you so much. Finally got it On Wed, Mar 20, 2013 at 4:27 AM, Chris Pratt wrote: > Try: > > [^<>]+ > > (*Chris*) > > > > > On Tue, Mar 19, 2013 at 3:50 PM, Mural

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Yes I did. Not only this to that matter a simple reg which is shown in docs also did not work. so i concluded that validator itself is not working. I dont know why? On Wed, Mar 20, 2013 at 4:23 AM, Chris Pratt wrote: > Muralindhar, > I just realized I forgot the + from your original regex. Di

Re: problem with regex validator

2013-03-19 Thread Chris Pratt
Try: [^<>]+ (*Chris*) On Tue, Mar 19, 2013 at 3:50 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > This is how i did > > http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> > > > > > The value of bar2 must be in the format > w

Re: problem with regex validator

2013-03-19 Thread Chris Pratt
Muralindhar, I just realized I forgot the + from your original 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 did

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
This is how i did http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> The value of bar2 must be in the format where x and y are between 0 and 9 Almost I have tried all the suggested combination by the members. It did not work. On Wed, Mar 20,

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

2013-03-19 Thread Muralidhar Yaragalla
The following is what i am doing /jsp/lv/voteTopic.jsp /jsp/lv/voteTopic.jsp When there is field 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

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Dave Newton : > This is fun. don't push ;-) 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...@st

Re: problem with regex validator

2013-03-19 Thread Dave Newton
This is fun. On Tue, Mar 19, 2013 at 6:29 PM, 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 > -- > Łukasz > + 4

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
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 -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ ---

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 > + 48 606 323 122 http://www.lenart.org.pl/ > > --

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

2013-03-19 Thread Lukasz Lenart
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 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-u

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. > > You cannot use redirect a

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > I am not sure who is "toy". *you 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: use

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

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > I i use just plain input error messages getting printed but the values of > the fields are not retained. You cannot use redirect and expect that the values will be retained. Remove type="redirect". Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

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 > > > Regards > -- > Łukasz > + 48 606 323 1

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.VotingTopicAction" method="execute"> > >

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
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 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To

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

2013-03-19 Thread Muralidhar Yaragalla
I have used redirect as follows /jsp/lv/voteTopic.jsp /jsp/lv/voteTopic.jsp This did not work eighter. On Wed, Mar 20, 2013 at 3:04 AM, Paul Benedict wrote: > You retain those values by doing a forward to a view (JS

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

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > I have tried this > > class="com.ymd.ums.lv.action.VotingTopicAction" method="execute"> >/jsp/lv/voteTopic.jsp > > >/jsp/lv/voteTopic.jsp > > > > But even error messages not getting pri

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 > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > ---

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

2013-03-19 Thread Muralidhar Yaragalla
I have tried this /jsp/lv/voteTopic.jsp /jsp/lv/voteTopic.jsp But even error messages not getting printed. On Wed, Mar 20, 2013 at 3:04 AM, Paul Benedict wrote: > You retain those values by doing a forward to a view

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 not use log4j. I am saying

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > something like "apple<>" (without quotes). Which version of Struts do you use? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.a

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Paul Benedict : > Did you add the ^ and $ like I suggested? Is really not needed, I have tested with the Showcase app, just modify FieldValidatorsExampleAction-submitFieldValidatorsExamples-validation.xml and you can see the desired behaviour Regards -- Łukasz + 48 606 323 122 http://

Re: problem with regex validator

2013-03-19 Thread Paul Benedict
Did you add the ^ and $ like I suggested? On Tue, Mar 19, 2013 at 4:34 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > 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?

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

2013-03-19 Thread Paul Benedict
You retain those values by doing a forward to 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 farm th

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: > > > As far as i remember commons logging is one

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > As far as i remember commons logging is one of the implementation of log4j. > but xworks classes does not use log4j. I am saying this because i have used > the log that comes from the super class which is a xworks class and that is > not of log4j. No, is not. com

Re: problem with regex validator

2013-03-19 Thread Paul Benedict
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 logging is one of the implementation of log4j. > but xworks classes does not use log4j. I am saying this because i have used

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
As far as i remember commons logging is one of the implementation of log4j. but xworks classes does not use log4j. I am saying this because i have used the log that comes from the super class which is a xworks class and that is not of log4j. On Wed, Mar 20, 2013 at 2:53 AM, Lukasz Lenart wrote:

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
I have modified the Showcase app and defined regexp as and everything works as expected. But I noticed one thing, I have renamed expression param into regex in 2.3.12, the question is which version do you use? http://struts.apache.org/development/2.x/docs/regex-validator.html Regards -- Łukas

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
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 appenders) Log4j is supported throughout commons-logging Re

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 other validators are working fine except r

Re: problem with regex validator

2013-03-19 Thread Dave Newton
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 other validators are working fine except regex. > > > On Wed, Mar 20, 2013 at 2:21 AM, Paul Benedict > wrote: > > > When th

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Hi, All the other validators are working fine except regex. On Wed, Mar 20, 2013 at 2:21 AM, Paul Benedict wrote: > When the validator isn't working, it could signify none of your validation > is working. Have you tried the "required-string" validator or anything else > is working? > > Paul > >

Re: problem with regex validator

2013-03-19 Thread Paul Benedict
When the validator isn't working, it could signify none of your validation is working. Have you tried the "required-string" validator or anything else 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

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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 Benedict wrote: > [^<>] means any character that is not the angled brackets. This is > correct syntax for XML

Re: problem with regex validator

2013-03-19 Thread Paul Benedict
[^<>] 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: ^[^<>]$ Paul On Tue, Mar 19, 2013 at 3:35 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > Hi Chris, I tried with the regex

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
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 wrote: > I'm pretty sure you can't use CDATA insid

Re: problem with regex validator

2013-03-19 Thread Chris Pratt
My bad, but the [^<>] should still work. (*Chirs*) On Tue, Mar 19, 2013 at 12:06 PM, Dave Newton wrote: > It's not an attribute value, it's an element's content. > > > On Tue, Mar 19, 2013 at 3:00 PM, Chris Pratt >wrote: > > > I'm pretty sure you can't use CDATA inside an attribute value. H

Re: problem with regex validator

2013-03-19 Thread Dave Newton
It's not an attribute value, it's an element's content. On Tue, Mar 19, 2013 at 3:00 PM, Chris Pratt wrote: > I'm pretty sure you can't use CDATA inside an attribute value. Have you > tried: "[^<>]" > (*Chris*) > > > On Tue, Mar 19, 2013 at 8:52 AM, Muralidhar Yaragalla < > java.yaraga...@gma

Re: problem with regex validator

2013-03-19 Thread Chris Pratt
I'm pretty sure you can'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.com.opensymphony.xwork2.validator.validators=debug >

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 Yaragalla : >

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > 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.

Re: problem with regex validator

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

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
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, <>hjghj matches ^[<>]+ and there is no error. http://regexp.pl/main/show/182003 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

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 show any error but the problem is validation d

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > Do u want me to change the application log4j level to debug or is there > anything that i should do in struts? log4j Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscr

Re: S2 annotations to limit HTTP methods?

2013-03-19 Thread Lukasz Lenart
2013/3/19 Maurizio Cucchiara : > IMHO supporting http request method could be a value added: sometime > you have to define a something.action and a doSomething.action (as > example see fileupload action definition [1]) in order to define an > input action (usually request by a get method) and the f

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 > > engines but that i

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 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. Ok, but what value did you try to enter into the field? Do you use / tag? or xhtml / css_xhtml theme? As simple theme doesn't present vali

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 character data) > > Did yo

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 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. RegexFieldValidator uses java.util.regex.Pattern internally, try to increase logging level to DEBUG for it and you should see in the lo

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > I tried but it shows up the earlier problem. (formatted character data) Did you put it inside CDATA block? You must use CDATA as < and > are xml specific characters. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

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 > > xml file is not g

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 then the input is allowing the

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
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 then the input is allowing the "<" > and ">" characters. That means still there is problem. Any help on this? Maybe the problem is with regex itself, try this one:

Re: Struts2: Problem with form fields

2013-03-19 Thread Lukasz Lenart
2013/3/19 Dhananjay Makwana : > I do have an excludePattern but that is for my css, js files. Here's my > struts.xml file. I am using version 2.3.8. I have double checked and your problem is related to acceptParamNames property of ParametersInterceptor which was defined very restrictive [1] to sec

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 wrote: > 2013/3/19 Muralidhar Yaragalla : >

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > Basically i want use regular expressions in validators. xml experience is > fine but why sould i learn dtd syntax to write simple regex for regex > validator? Anyways the suggested regex with cdata by another user is also > not working. so any help on writing rege

Re: problem with regex validator

2013-03-19 Thread Dave Newton
Because the regex is in an XML file? Which has nothing to do with DTD syntax. On Mar 19, 2013 7:43 AM, "Muralidhar Yaragalla" wrote: > Basically i want use regular expressions in validators. xml experience is > fine but why sould i learn dtd syntax to write simple regex for regex > validator? An

Re: problem with regex validator

2013-03-19 Thread Muralidhar Yaragalla
Basically i want use regular expressions in validators. xml experience is fine but why sould i learn dtd syntax to write simple regex for regex validator? Anyways the suggested regex with cdata by another user is also not working. so any help on writing regex for regex validator which is equalent t

Re: problem with regex validator

2013-03-19 Thread Lukasz Lenart
2013/3/19 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. You should think about taking some XML experience - CDATA has nothing to do with regex. Regards -- Łukasz

Re: Struts2: Problem with form fields

2013-03-19 Thread Dhananjay Makwana
I do have an excludePattern but that is for my css, js files. Here's my struts.xml file. I am using version 2.3.8. /accountList.tiles accounts On 3/19/13 4:22 PM, Lukasz L

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: Struts2: Problem with form fields

2013-03-19 Thread Lukasz Lenart
2013/3/19 Dhananjay Makwana : > 2013-03-19 14:33:25,683 [http-8080-2] WARN > com.opensymphony.xwork2.interceptor.ParametersInterceptor - Parameter > [#session.accounts['aaa'].properties[0].value] didn't match acceptedPattern > pattern! This is odd, as I have already checked and #session.accounts['

Struts2: Problem with form fields

2013-03-19 Thread Dhananjay Makwana
Hi Everyone, I am new to Struts2. I am creating a basic page where user can see login credentials for few accounts (any type like Email, FB etc.) and if one of them is not present then add them. Each account has a list of properties with a name and a string value (keeping it simple). Now in m

Re: S2 annotations to limit HTTP methods?

2013-03-19 Thread Maurizio Cucchiara
IMHO supporting http request method could be a value added: sometime you have to define a something.action and a doSomething.action (as example see fileupload action definition [1]) in order to define an input action (usually request by a get method) and the final action submitted by a post request

Re: problem with regex validator

2013-03-19 Thread Maurizio Cucchiara
Did you already try to put regex inside a cdata section?