RE: Struts2 with AngularJS

2014-11-19 Thread Martin Gainty
> Date: Wed, 19 Nov 2014 17:20:00 +0700 > Subject: Re: Struts2 with AngularJS > From: linut...@gmail.com > To: user@struts.apache.org > > Hi, > > Thanks for the prompt reply, I'll have a look at the Struts2 AngularJS > archetype > But I meant AngularJS interceptor ( > https://docs.angularj

RE: Struts2 with AngularJS

2014-11-19 Thread Martin Gainty
> Date: Wed, 19 Nov 2014 17:20:00 +0700 > Subject: Re: Struts2 with AngularJS > From: linut...@gmail.com > To: user@struts.apache.org > > Hi, > > Thanks for the prompt reply, I'll have a look at the Struts2 AngularJS > archetype > But I meant AngularJS interceptor ( > https://docs.angularj

Re: best approach to clean parameters using Jsoup

2014-11-19 Thread JOSE L MARTINEZ-AVIAL
Quick question here. I'm working on the approach to use a custom conversor. It works fine for standard parameters (Just a String), but I'm having issues when the getter receives a String[] parameters private String parameter = null; @TypeConversion(type = ConversionType.CLASS, converter =

Re: best approach to clean parameters using Jsoup

2014-11-19 Thread JOSE L MARTINEZ-AVIAL
Thanks for the ideas. Overwriting retrieveParameters(ActionContext ac) method seems a good solution, although that would imply doing it to all parameters. While that could be ok, I would like to take a less aggressive approach.One option I'm considering is to user a custom Converter that could take

Re: Struts2 with AngularJS

2014-11-19 Thread foo bar
Hi, Thanks for the prompt reply, I'll have a look at the Struts2 AngularJS archetype But I meant AngularJS interceptor ( https://docs.angularjs.org/api/ng/service/$http) which is still client side, AngularJS interceptor is meant to intercept {name:"abc",address:"abc"} and change it to {customer:{n

Re: How to predict wildcard mapping matching order when using Struts annotations

2014-11-19 Thread Lukasz Lenart
2014-11-12 7:42 GMT+01:00 Jim deVos : > When struts encounters a URI that matches multiple wildcard mappings it > chooses the most recent match (ie. "the last one wins" ). As a result, I > should define less-specific patterns before the more specific patterns. > This is simple enough when using

Re: Struts2 with AngularJS

2014-11-19 Thread Lukasz Lenart
2014-11-19 9:51 GMT+01:00 foo bar : > Hi guys, > > I'm currently looking into ease of development of using AngularJS with > Struts2. > I'm wondering what is the best practice in general > ie. AngularJS with $resource or $http, Struts2 with what plugin ? > Is the REST + convention plugin a must to s

Re: best approach to clean parameters using Jsoup

2014-11-19 Thread Lukasz Lenart
2014-11-19 4:57 GMT+01:00 JOSE L MARTINEZ-AVIAL : > Hello, > We are using Struts 2.3.16.3 for our application. Due to security > reasons, we need to "clean" the user's input in order to avoid XSS. We are > using JSoup for that, with success( > http://jsoup.org/cookbook/cleaning-html/whitelist-san

Struts2 with AngularJS

2014-11-19 Thread foo bar
Hi guys, I'm currently looking into ease of development of using AngularJS with Struts2. I'm wondering what is the best practice in general ie. AngularJS with $resource or $http, Struts2 with what plugin ? Is the REST + convention plugin a must to support AngularJS's RESTful nature ? I'm currentl

Re: best approach to clean parameters using Jsoup

2014-11-19 Thread Christoph Nenning
> Hello, > We are using Struts 2.3.16.3 for our application. Due to security > reasons, we need to "clean" the user's input in order to avoid XSS. We are > using JSoup for that, with success( > http://jsoup.org/cookbook/cleaning-html/whitelist-sanitizer). > > The issues is that we haven't fin