Re: Parent package is not defined

2013-10-07 Thread Lukasz Lenart
2013/10/8 Umesh Awasthi : > Hi Lukasz, > > thanks for demo application. > I am working on it and hope to complete it soon. > > Thanks for the correction as i have not tested it yet (My plugin code ;)) You're welcome :-) And I suggest changing groupId and artifcatId, e.g. org.apache.struts struts

Re: config-browser plugin and validateAnnotatedMethodOnly

2013-10-07 Thread Lukasz Lenart
2013/10/7 Alireza Fattahi : > Hi, > > There seems to be a bug in the config-browser plugin, Action Information, > validator tab. > > When I configure the validation as validateAnnotatedMethodOnly, the validator > tab still shows all the validations instead of method specific validations. > > I us

Re: Parent package is not defined

2013-10-07 Thread Umesh Awasthi
Hi Lukasz, thanks for demo application. I am working on it and hope to complete it soon. Thanks for the correction as i have not tested it yet (My plugin code ;)) Thanks Umesh On Tue, Oct 8, 2013 at 11:42 AM, Lukasz Lenart wrote: > My demo app > > https://github.com/lukaszlenart/struts2-js

Re: Parent package is not defined

2013-10-07 Thread Lukasz Lenart
My demo app https://github.com/lukaszlenart/struts2-jsr303-example Anyway, first the plugin must be fully operational, right now it performs validation but it lacks of validation messages ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/10/8 Lukasz Lenart : > After instal

Re: Parent package is not defined

2013-10-07 Thread Lukasz Lenart
After installing the plugin locally (mvn clean source:jar install) I have added it as follow: struts2-jsr303-validator-plugin jsr303-validator 1.0-SNAPSHOT org.hibernate hibernate-validator 4.3.1.Fi

Re: Prevent Ajax Multi-Request in Struts 2

2013-10-07 Thread jlmagc
Sorry, I just read your mail again, and realice you are not asking specifically for csrf protection(the link you provided is about that, but not your mail), but just how to avoid multirequest, so maybe my answer is not usefull at all. JL Sent via BlackBerry from T-Mobile -Original Message--

Re: Prevent Ajax Multi-Request in Struts 2

2013-10-07 Thread jlmagc
What are you using on the client for the ajax calls? Dojo? Jquery? They both generate an http header “x-requested-with” with value “XMLHTTPrequest”. A normal post can not add http headers, so checking for that header allows you to be sure the request was made using XHR. Since XHR cannot work cro

Re: Prevent Ajax Multi-Request in Struts 2

2013-10-07 Thread Alireza Fattahi
Jose,   I am still in the middel of this problem :( Can you please let me know what do you mean by "check HTTP header" ?! ~Regards, ~~Alireza Fattahi From: JOSE L MARTINEZ-AVIAL To: Struts Users Mailing List ; Alireza Fattahi Sent: Thursday, 26 September 20

Re: Parent package is not defined

2013-10-07 Thread Umesh Awasthi
Thanks Everyone, issue was with my Eclipse as it was not updating project dependencies. On Mon, Oct 7, 2013 at 10:50 PM, Umesh Awasthi wrote: > I have got root cause of my issue. I was not checking it thoroughly and > thinking that my plugin is not being loaded properly. > > Not sure about root

Re: Parent package is not defined

2013-10-07 Thread Umesh Awasthi
I have got root cause of my issue. I was not checking it thoroughly and thinking that my plugin is not being loaded properly. Not sure about root cause yet. I have declared plugin dependency in my Struts2 sample application's pom.xml as bean-validator-plugin bean-validator

Re: Parent package is not defined

2013-10-07 Thread Dave Newton
On Mon, Oct 7, 2013 at 12:53 PM, Umesh Awasthi wrote: > Not sure why its showing this structure, i tried git for first time so > might be i have done some wrong steps. > No, it's fine; that's part of the github directory structure. > On Mon, Oct 7, 2013 at 10:06 PM, Martin Gainty > wrote: > >

Re: Parent package is not defined

2013-10-07 Thread Umesh Awasthi
Hi Martin, Not sure why its showing this structure, i tried git for first time so might be i have done some wrong steps. But in my local repo struts-plugin.xml in inside resource folder and even in the jar file it is in root folder. On Mon, Oct 7, 2013 at 10:06 PM, Martin Gainty wrote: > yo

RE: Parent package is not defined

2013-10-07 Thread Martin Gainty
you have created a link to 'src' which redirects struts-plugin.xml located in 'src' link Here is the result of the redirect https://github.com/umeshawasthi/jsr303-validator-plugin/tree/master/src/main/resources/struts-plugin.xml struts-plugin.xml should be always be located in https://gith

Re: Parent package is not defined

2013-10-07 Thread Umesh Awasthi
that is really strange.. i used maven to create my sample Struts2 application. used mvn-install to place plugin jar to local repo and than used maven to update my struts2 app dependencies. Seems like issue in Struts2 sample application build. On Mon, Oct 7, 2013 at 9:05 PM, Lukasz Lenart wrote:

Re: Parent package is not defined

2013-10-07 Thread Lukasz Lenart
It works for me ;-) Right now preparing small demo. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/10/7 Umesh Awasthi : > any hint ? :) > > > On Mon, Oct 7, 2013 at 2:19 PM, Umesh Awasthi wrote: > >> Hi Lukasz, >> >> here is the repo link >> >> https://github.com/umeshawasthi

Re: Parent package is not defined

2013-10-07 Thread Umesh Awasthi
any hint ? :) On Mon, Oct 7, 2013 at 2:19 PM, Umesh Awasthi wrote: > Hi Lukasz, > > here is the repo link > > https://github.com/umeshawasthi/jsr303-validator-plugin > > Thanks > Umesh > > > On Mon, Oct 7, 2013 at 12:13 PM, Lukasz Lenart wrote: > >> Yes, please do :-) >> >> 2013/10/7 Umesh Awast

Re: Parent package is not defined

2013-10-07 Thread Umesh Awasthi
Hi Lukasz, here is the repo link https://github.com/umeshawasthi/jsr303-validator-plugin Thanks Umesh On Mon, Oct 7, 2013 at 12:13 PM, Lukasz Lenart wrote: > Yes, please do :-) > > 2013/10/7 Umesh Awasthi : > > No, its not in sub-directory > > I can share gitHub link if want to have look at s

config-browser plugin and validateAnnotatedMethodOnly

2013-10-07 Thread Alireza Fattahi
Hi,   There seems to be a bug in the config-browser plugin, Action Information, validator tab.   When I configure the validation as validateAnnotatedMethodOnly, the validator tab still shows all the validations instead of method specific validations.   I used @Validations for validating methods a