Re: problem in validation with struts 2.3.1

2013-03-18 Thread Lukasz Lenart
2013/3/18 Muralidhar Yaragalla : > //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/ - To unsubscribe, e-mail: use

Re: does struts 2.3 support mask validator?

2013-03-18 Thread Lukasz Lenart
2013/3/18 Muralidhar Yaragalla : > hi I have been searching on net for mask validator examples but could not > found any for 2.3. Mask validator? What you mean by that? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: S2 annotations to limit HTTP methods?

2013-03-18 Thread Lukasz Lenart
2013/3/18 Paul Benedict : > I see that javax.ws.rs has @GET, @POST, etc. annotations that can @Target a > method. Those seem like a good choice, but they are unfortunately part of > the web services package. Too bad they weren't part of the common Servlet > support! However, javax.servlet.annotatio

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['

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: 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: 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 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: 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 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 : > 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: 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 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: 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 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 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 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 : > 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 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 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: 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 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 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 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 : > 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: 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 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: 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 to pass the current logged in username to struts2 action from spring security 3

2013-03-20 Thread Lukasz Lenart
Thus defined in your mail ... 2013/3/20 Omar Ngarigari : > Which annotation type should I use in my actiom class to inject user object? > > Sent from my iPhone > > On Mar 20, 2013, at 2:14 AM, Lukasz Lenart wrote: > >> 2013/3/20 Omar Ngarigari : >>> >&

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Lukasz Lenart
2013/3/20 Eric Chatellier : > Is there any working solution with 2.3.12 ? > > tried some configurations with > > index > > but doesn't seems to work yet... The problem with is that by Servlet Spec only static resources can be defined as a welcome file, thus leads to solution like: - defin

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

2013-03-20 Thread Lukasz Lenart
It doesn't work that way, check once again Hernán's mail, he showed you interceptor, annotation and how to define a stack. You just must add annotation into your action. 2013/3/20 Omar Ngarigari : > I annotated my action class as follow: > > @Target({java.lang.annotation.ElementType.METHOD}) > @Re

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Lukasz Lenart
2013/3/20 Paul Benedict : > What I've suggested before -- but haven't done anything about it -- is to > allow the struts.xml packages to have an index action. This will execute if > the package is specified but no action. This is different than a default > action. You mean an additional attribute:

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-21 Thread Lukasz Lenart
2013/3/21 Eric Chatellier : > There is maybe a misunderstanding here. > Ticket #WW-3997 is talking about empty action. > > My real problem is that i'm using convention plugin IndexAction. > It was working in 2.3.8, but not anymore in 2.3.12 too. Hm... this is strange, could you prepare a small dem

Re: Struts 2 Annotations Maven - No Action mapped

2013-03-21 Thread Lukasz Lenart
2013/3/21 Álvaro López López : > Hello everyone, > > I am following the Struts2 Getting Started tutorial at > http://struts.apache.org/development/2.x/docs/getting-started.html > I reached the "Struts 2 Annotations". I downloaded the Maven version: > Struts2_Annotations_Mvn_2_2_1.zip > Then, I up

Re: Struts 2 Annotations Maven - No Action mapped

2013-03-21 Thread Lukasz Lenart
2013/3/21 Álvaro López López : > I have tried to mimic that behavior in my version (struts2 - 2.312) but what > explained in this paragraph is not working: > > "The input method above returns "input". > By the standards of the Convention plugin, the view page rendered will be > register-input.jsp

Re: Struts 2 Annotations Maven - No Action mapped

2013-03-21 Thread Lukasz Lenart
2013/3/21 Álvaro López López : > After reviewing the "Convention Plugin documentation" I found "struts" and > "action" are > keywords for the plugin to find packages. > > As the classes were under "org.apache.struts.struts2annotations.action", the > default > Namespace didn´t find the action clas

Re: Exception thrown because of struts-config.xml

2013-03-21 Thread Lukasz Lenart
What exception? 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...@struts.apache.org

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-21 Thread Lukasz Lenart
Ok, I have reverted changes to DefaultActionMapper, so the previous logic will work as expected. Thanks Eric for your contribution! Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-un

Re: question on results?

2013-03-24 Thread Lukasz Lenart
2013/3/24 Muralidhar Yaragalla : > Hi In my action class i need to get all the results mapped to that > particular action calss, how to do that? You can take a look on the Config Browser plugin https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/config-browser/ Regards -- Łukasz + 48

Re: How to validate multiple fields with the same name

2013-03-25 Thread Lukasz Lenart
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 the 4 fields i have > contains the same name so how do i do that in an xml. I know that it can be > done inside valiadtion() method.

Re: Hibernate problem with OGNL

2013-03-26 Thread Lukasz Lenart
2013/3/26 Markus Demetz : > Hi, > > I don't know if this is the right place to ask, but maybe there is anyone > who has experienced the same problem. > > I'm using Struts2 (latest version), with Hibernate (latest version) > My database models all have getId(). > > I have situations, where the getId

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-27 Thread Lukasz Lenart
2013/3/27 lucas owen : > NEVER MIND > > it turns out that a co-worker had touched validate() method: > > public void validate(){ > Map> fieldError = new HashedMap(); > setFieldErrors(fieldError); > } > > what i didn´t know is that (calling "save" action) after validateSave, > Struts 2 con

Re: Hibernate problem with OGNL

2013-03-27 Thread Lukasz Lenart
2013/3/27 Markus Demetz : > I think I've found the problem. > I had javassist 3.17.1 (latest) in my project but hibernate 4.2 ships with > version 3.15.0 > Now it seems to work! Yeah... this version is buggy :P I have tried update Ognl 3 to it but no luck ;-) Regards -- Łukasz + 48 606 323 122

Re: generating taglib using Ant and Java 6

2013-04-04 Thread Lukasz Lenart
If you find a solution, please share it as we can use with Struts 3 then :-) 2013/4/4 Steven Yang : > Sorry this may not be directed to Struts2 > > I have written some Struts2 taglib and want to package them into a jar. > I am not using maven so I used to use Ant with apt tag. > And my task looks

Re: Complete list of framework bean keys

2013-04-04 Thread Lukasz Lenart
2013/4/5 Ken McWilliams : > Sometimes I want to override a default framework implementation and the > first place I look is in struts-default.xml but I don't think it contains > all possible bean keys. > > Is such a list maintained? http://struts.apache.org/development/2.x/docs/plugins.html#Plugin

Re: Complete list of framework bean keys

2013-04-04 Thread Lukasz Lenart
2013/4/5 Ken McWilliams : > Perfect. > > As an asides: There not appear to be a unit test for > XmlConfigurationProvider, is it tested indirectly? XmlConfigurationProviderMultilevelTest XmlConfigurationProviderInterceptorParamOverridingTest XmlConfigurationProviderResultsTest XmlConfigurationProvi

Re: generating taglib using Ant and Java 6

2013-04-07 Thread Lukasz Lenart
2013/4/7 Steven Yang : > here is the source on git > https://github.com/lunaspeed/struts-annotation-processor > > I am new on both git and maven so it seems I have not done somethings > right. Please tell me where I can improve. Have you tried to use and modify Struts Annotation project? https://

Re: generating taglib using Ant and Java 6

2013-04-07 Thread Lukasz Lenart
2013/4/8 Steven Yang : > yes I was using it when my project was built against java 1.5 > > as it uses APT which is not in Java 1.6 anymore. > > so I ported it to use the new Annotation Processor. > > I basically did a direct translation Is it a problem for you to prepare a patch with your changes?

Re: generating taglib using Ant and Java 6

2013-04-08 Thread Lukasz Lenart
2013/4/8 Steven Yang : > sure but just that i have never done such thing before > please inform me on the step and what should i do Checkout the project with svn svn co https://svn.apache.org/repos/asf/struts/maven/trunk/struts-annotations/ modify the source in IDE svn diff > changes.diff or use

Re: generating taglib using Ant and Java 6

2013-04-08 Thread Lukasz Lenart
2013/4/8 Steven Yang : > one question > > should i do it in a new package? the old one is for apt and should be kept > right? Hm... I think you're right, good idea :-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: generating taglib using Ant and Java 6

2013-04-09 Thread Lukasz Lenart
2013/4/9 Steven Yang : > submitted > please let me know if anything is wrong, first timer > > https://issues.apache.org/jira/browse/WW-4040 Thanks a lot! I will review it asap :-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

[ANN] Struts 2.3.14 GA release available

2013-04-15 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.3.14 is available as a "General Availability" release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to

Re: Can't build 2.3.15-SNAPSHOT

2013-04-17 Thread Lukasz Lenart
I'm working on that right, but the JIRA ticket will be fine :-) 2013/4/17 Maurizio Cucchiara : > Hi Gabriel, > I can confirm the issue, I have experienced it a couple of days ago. > It has to do with the double conversion and the decimal separator (locale). > > Could you file an issue on JIRA [1]?

Re: generating taglib using Ant and Java 6

2013-04-17 Thread Lukasz Lenart
2013/4/10 Ken McWilliams : > Has anyone here checked out the suitability of using the Tile auto tag > project for struts2? > http://tiles.apache.org/tiles-autotag/index.html Added to list of tasks related to S2.5/3 https://cwiki.apache.org/confluence/display/WW/Struts+Next Regards -- Łukasz +

Re: Can't build 2.3.15-SNAPSHOT

2013-04-18 Thread Lukasz Lenart
Should be solved! Thanks! -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/4/17 Gabriel Belingueres : > Hi: > > I checked out the last version from svn and can't build it from sources > (mvn clean install). Seems it worked on Apache's Jenkins though: > > Tests run: 701, Failures: 1, E

Re: interceptor init twice

2013-04-24 Thread Lukasz Lenart
2013/4/25 Steven Yang : > And sorry this behavior started on 2.3.7 and 2.3.4.1 does not have this > behavior I would said, it isn't expected behavior ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubs

Re: interceptor init twice

2013-04-25 Thread Lukasz Lenart
2013/4/25 Felipe Lorenz : > with version 2.3.12, same behavior. Is this happen only during initialisation? in devMode? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@str

Re: How can I put multiple charts into a single JSP page using JFree Chart?

2013-04-26 Thread Lukasz Lenart
2013/4/17 Norah Jones : > I am planning to use JFree Charts for my web application. I have a > requirement to place multiple Charts (say multiple pie charts) on a single > JSP page. How can I achieve using JFree Charts? I have limited knowledge about JFree CHarts but it shouldn't be a problem. J

Re: Generate PortletURL object with Struts framework

2013-04-26 Thread Lukasz Lenart
2013/4/24 Juan Jose Fuentes Esteban : > Which is the preferred way of generating a PortletURL object using Struts 2 > portlet framework? I have the need to obtain a PortletURL object instead of > a String because after that I'll need to add parameters to this PortletURL. Hmm... I don't see support

Re: Generate PortletURL object with Struts framework

2013-04-26 Thread Lukasz Lenart
support in the future, if you ask me. The way it is now, we must > generate the PortletURL using the portal API, and after that we have to add > the parameters that'd make work with Struts2... > > Thank you Lukasz > > > 2013/4/26 Lukasz Lenart > >> 2013/4/24

Re: Localised text tag

2013-05-07 Thread Lukasz Lenart
Hi, Yeah, it looks like a double evaluation which is a bug probably Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/8 Dale Newfield : > It seems like an evaluation of a value, which could be bad, in fact a large > security hole. What if that value were "System.exit()"? (

Re: Localised text tag

2013-05-08 Thread Lukasz Lenart
double evaluations? Or > is there a fix in GitHub? > > Z. > > > On 8/05/13 3:51 PM, "Lukasz Lenart" wrote: > >>Hi, >> >>Yeah, it looks like a double evaluation which is a bug probably >> >> >>Regards >>-- >>Łukasz

Re: interceptor init twice

2013-05-08 Thread Lukasz Lenart
ng initialization and >> before I access any of my actions, and no more init called after that >> >> >> On Fri, Apr 26, 2013 at 2:35 PM, Lukasz Lenart >> wrote: >> >>> 2013/4/25 Felipe Lorenz : >>> > with version 2.3.12, same behavior

Re: struts 2 / sitemesh/

2013-05-09 Thread Lukasz Lenart
Ken you are right, there are few options how to integrate Sitemesh with Struts2 and all are documented on the page http://struts.apache.org/development/2.x/docs/sitemesh-plugin.html Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/9 Ken McWilliams : > I know very little abo

Re: Parameter problem with names using '[' and ']'

2013-05-09 Thread Lukasz Lenart
Hi Chris, Have you tried to use 2.3.14? For some reasons 2.3.12 was a bit impaired ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/9 CRANFORD, CHRIS : > Up until 2.3.12, we've used forms that contained parameter names that used > '[' and ']' and those forms worked in b

Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-09 Thread Lukasz Lenart
Thanks Chris! There was a security release between - 2.3.4.1 - have you tried it? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/8 CRANFORD, CHRIS : > After some final digging, this appears to only surface in devMode=true on > builds 2.3.12 and 2.3.14 regarding Parameters

Re: Parameter problem with names using '[' and ']'

2013-05-16 Thread Lukasz Lenart
kBerry > > -Original Message----- > From: Lukasz Lenart > Date: Fri, 10 May 2013 06:42:55 > To: Struts Users Mailing List > Reply-To: Struts Users Mailing List > Subject: Re: Parameter problem with names using '[' and ']' > > Hi Chris, > > Have

Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-16 Thread Lukasz Lenart
> -Original Message- > From: Lukasz Lenart > Date: Fri, 10 May 2013 06:51:52 > To: Struts Users Mailing List > Reply-To: Struts Users Mailing List > Subject: Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14 > > Thanks Chris! > > There was a

Re: interceptor init twice

2013-05-16 Thread Lukasz Lenart
Maybe your problem is related to: https://issues.apache.org/jira/browse/WW-3870 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/9 Steven Yang : > thanks good to know i am not being forgotten :) > > > On Thu, May 9, 2013 at 12:51 PM, Lukasz Lenart wrote: >

Re: interceptor init twice

2013-05-16 Thread Lukasz Lenart
I have been looking into that and I am sure that's the problem, could you register an issue with JIRA? Thanks in advance -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/16 Lukasz Lenart : > Maybe your problem is related to: > > https://issues.apache.org/jira/

Re: interceptor init twice

2013-05-16 Thread Lukasz Lenart
Fix is ready, I just need a JIRA task :-) 2013/5/16 Lukasz Lenart : > I have been looking into that and I am sure that's the problem, could > you register an issue with JIRA? > > > Thanks in advance > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > >

Re: interceptor init twice

2013-05-16 Thread Lukasz Lenart
Committed, please check with the latest snapshot. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/17 Steven Yang : > Wow that's fast > > here it is > https://issues.apache.org/jira/browse/WW-4067 > > thanks > > > On Fri, May 17, 2013

Re: How to process HTTP HEAD requests?

2013-05-18 Thread Lukasz Lenart
2013/5/18 Paul Benedict : > In one particular action, I need to handle HTTP HEAD requests. Is this > possible using Struts 2? What must I customize if it doesn't work out of > the box? Check this out [1] or maybe Struts filter just do the job ;-) If not, please request an improvement :-) [1] http

[ANN] Struts 2.3.14.1 GA (fast track | security)

2013-05-23 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.3.14.1 is available as a "General Availability" release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed

Re: S2 Validation XML + Bootstrap

2013-05-23 Thread Lukasz Lenart
Have you tried validate="true" in ? It should work, maybe just add Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/23 Frans Thamura : > Hi All > > anyone have idea how to implement validation xml inside s2 > (serverside), and link with bootstrap theme UI. > > the idea is t

Re: Custom error message per converter

2013-05-23 Thread Lukasz Lenart
Could you show source code of your DateConverter? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/23 Alfredo Manuel Osorio Martinez : > Hello, > > Is it possible to configure a custom error message per converter? > > For example I have this in my xwork-conversion.properties

Re: Custom error message per converter

2013-05-23 Thread Lukasz Lenart
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/"); > return sdf.format((Date)o); > } > return ""; > } > } > > > -Mensaje original- > De: Lukasz Lenart [mailto:lukaszlen...@apache.org] Enviado

Re: Actions as welcome files

2013-05-31 Thread Lukasz Lenart
2013/5/31 Antonio Sánchez : > I have to move struts.xml (originally inside resources folder) inside maven > 'main' folder to make it work and avoid > > HTTP 404 - There is no Action mapped for namespace [/] and action name > [] associated with context path [/Hello_World_Struts2_Mvn]. > > but th

Re: maven artifacts

2013-06-04 Thread Lukasz Lenart
2013/6/4 Antonios Gkogkakis : > Hi all, > > version 2.3.14.3 is not available in maven repo and actually I can't find > at the release pages either > http://struts.apache.org/download.cgi#struts23143 Is under Vote and should be released today. Regards -- Łukasz + 48 606 323 122 http://www.lenar

Re: maven artifacts

2013-06-04 Thread Lukasz Lenart
2013/6/4 Antonios Gkogkakis : > Thanks guys, > I'd also note that last version on maven repo is 2.3.14. All versions are available http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.struts%22%20AND%20a%3A%22struts2-core%22 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: maven artifacts

2013-06-04 Thread Lukasz Lenart
2013/6/4 Antonios Gkogkakis : > Sorry Lukasz, > I was actually checking > http://mvnrepository.com/artifact/org.apache.struts/struts2-parent and not > maven central :) No problem, Central is our target ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ ---

[ANN] Struts 2.3.14.3 GA (fast-track) release available

2013-06-04 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.3.14.3 is available as a "General Availability" release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed

Re: Access result name from JSP

2013-06-10 Thread Lukasz Lenart
2013/6/10 JOSE L MARTINEZ-AVIAL : > Hi, > >I have an action where all the possible results show the initial screen. > I do that by using a "*" result > > "xxx.yyy.zzz.PublishDocument"> > > type="tiles">customer.publish-document.screen > > > But I wou

Re: Access result name from JSP

2013-06-10 Thread Lukasz Lenart
2013/6/11 JOSE L MARTINEZ-AVIAL : > Actually, what I want is to get the result name returned by the action, not > the action name. Is there a simple way I can access the result from the JSP? Hm... I think the same, but the interceptor must be the last one in chain - as other interceptors can chang

Re: Restful2ActionMapper tests

2013-06-14 Thread Lukasz Lenart
You mean to add section about testing? Maybe it would better to show sample code with sample unittest, could you post something like that here? Thanks in advance! -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/14 Antonios Gkogkakis : > Hi all, > > I've made a documentation contribu

Re: Restful2ActionMapper tests

2013-06-17 Thread Lukasz Lenart
testView() throws Exception { > > > request.setMethod("get"); //Http method should be set > > ActionProxy proxy = getActionProxy("/rest/movie/1"); > > MovieAction movieAction = MovieAction.class.cast(proxy.getAction()); > >

Re: s:action tag showing result

2013-06-20 Thread Lukasz Lenart
Have you tried to use the previous versions? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/20 Felipe Lorenz : > Hi all, > > I have been using struts quite a long time, but in the last days I have faced > a strange behaviour of s:action tag. > > In my JSP I am using the ta

Re: Struts2 Exception Handling

2013-06-20 Thread Lukasz Lenart
2013/6/21 Sreekanth S. Nair : > Hi, > Can anyone point me a tutorial or reference for how to handle exception > (uncaught or all exception). There are so many tutorial available online > but all are different. http://struts.apache.org/development/2.x/docs/exception-handling.html Regards --

Re: Struts2 Exception Handling

2013-06-20 Thread Lukasz Lenart
e was something called CatchAll, can you please tell me how to do it. > > -- > Thanks & Regards > Srikanth > Software Developer > > eGovernments Foundations > www.egovernments.org > Mob : 9980078913 > ------

Re: Struts2 Exception Handling

2013-06-20 Thread Lukasz Lenart
xceptionStack in my custom error page) > > -- > Thanks & Regards > Srikanth > Software Developer > > eGovernments Foundations > www.egovernments.org > Mob : 9980078913 > -------- > > > On Fri, Jun

Re: s:action tag showing result

2013-06-21 Thread Lukasz Lenart
Could you try with the latest (almost released) version 2.3.15? I was checking locally with struts2-blank app and everything works, but maybe my setup is a bit different. If so I will need an example app (maven based the best). Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: s:action tag showing result

2013-06-21 Thread Lukasz Lenart
executeResult = false should be respected. > > Att, > > Felipe Lorenz > Gerente de Projetos > Idealogic Software > Fone: (51) 3715 5523 - (51) 3715 5548 > www.idealogic.com.br > > Em 21/06/2013, às 10:15, Lukasz Lenart escreveu: > >> Could you try with the l

Re: Blank Archetype i18n fails

2013-06-21 Thread Lukasz Lenart
2013/6/21 Antonio Sánchez : > Also blank application example. > > My default locale is es_ES . Clicking on "English" still returns Spanish > text. Renaming package.properties to package_en.properties makes it work. > > I'm not sure if this is the right place to report documentation, tutorial, > ex

Re: s:action tag showing result

2013-06-22 Thread Lukasz Lenart
3 - (51) 3715 5548 > www.idealogic.com.br > > Em 21/06/2013, às 10:47, Lukasz Lenart escreveu: > >> I have tested with struts2-blank and it works - I mean, executeResult >> is respected (as in 2.3.15). You can test that by simple removing all >> result definitions from struts.xm

Re: s:action tag showing result

2013-06-22 Thread Lukasz Lenart
2013/6/22 Litman, Bruno : > We are also experiencing issues with tags and theme files, we are upgrading > many applications from 2.3.4.1 to 2.3.14.3 > I am not sure if this is related - if not and if I need to start a new > discussion please let me know and accept my apology. > > 1/ > > We previo

[ANN] Struts 2.3.15 GA release available

2013-06-24 Thread Lukasz Lenart
The Apache Struts group is pleased to announce that Struts 2.3.15 is available as a "General Availability" release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to

Re: Struts2 with Jersey

2013-06-25 Thread Lukasz Lenart
Struts2 doesn't support JAX-RS spec, so you cannot mix those two. If you annotated your action as a JAX-RS bean, Jersey will take control over, Struts2 won't be engaged Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/25 lily : > Have anybody tried with using jersey along wit

Re: Struts 2.3.14.3 seems to drop ".action" from the generated form action

2013-06-25 Thread Lukasz Lenart
Hi Bruno, You already mentioned that, right now I don't have any solution and this looks like a bug. As I understand it happens randomly, it isn't a common pattern? And using http://www.lenart.org.pl/ 2013/6/24 Litman, Bruno : > Dear all, > > In the context of an tag, for instance for a login a

Re: redirectAction result - parameter in URL problem

2013-06-26 Thread Lukasz Lenart
Struts2 version? There is constant struts.url.includeParams which can be set to all, get or none and by default it's set to none (from some 2.3.x or 2.2.x version). So define constant in struts.xml to disable including params from GET Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.p

Re: s:action tag showing result

2013-06-26 Thread Lukasz Lenart
> > > > > class="br.com.seedingControl.action.CidadeAction"> > > > ^cidades\[\d+\]\.i

<    1   2   3   4   5   6   7   8   9   10   >