Re: best approach to clean parameters using Jsoup

2014-11-20 Thread Lukasz Lenart
Yeah... basically conversion isn't needed in that case ;-) 2014-11-20 15:32 GMT+01:00 JOSE L MARTINEZ-AVIAL : > I jsut used the annotation: > private String parameterArray[] = null; > @TypeConversion(rule= ConversionRule.COLLECTION, type = > ConversionType.CLASS, converter = "com.xxx.y

Re: best approach to clean parameters using Jsoup

2014-11-20 Thread JOSE L MARTINEZ-AVIAL
I jsut used the annotation: private String parameterArray[] = null; @TypeConversion(rule= ConversionRule.COLLECTION, type = ConversionType.CLASS, converter = "com.xxx.yyy.util.conversion. struts2.JSoupConversor") public void setParameterArray(String parameterArray[]) { this.

Re: best approach to clean parameters using Jsoup

2014-11-20 Thread Lukasz Lenart
How did you register it? 2014-11-19 12:55 GMT+01:00 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

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

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

best approach to clean parameters using Jsoup

2014-11-18 Thread 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-sanitizer). The issues is that we haven't find a really good

Re: Non editable jsp with struts 2 templates - whats the best approach?

2009-04-21 Thread Suneel
Well the problem is if I make a change to first jsp, then I need to make the same change on the second JSP like adding fields etc. This really becomes a pain when I have to change the page layout. If it is just one jsp, I can get away with changing just one page instead of two. This jsp is huge wit

Re: Non editable jsp with struts 2 templates - whats the best approach?

2009-04-21 Thread Dave Newton
Lukasz Lenart wrote: 2009/4/21 Suneel : I've a JSP where the user views a set of html input fields. The user enters the values and submits the page and he is taken to another page where he gets a chance to review his inputs before final submission. All this JSP does is, it displays the inputs as

Re: Non editable jsp with struts 2 templates - whats the best approach?

2009-04-21 Thread Lukasz Lenart
2009/4/21 Security Management : > Yes, create a theme based on simple that sets the disabled=true for the > fields, and render with that theme. Some browses don't send to a server disabled fields, so you will have to duplicate them in to the hidden inputs. You can use readonly=true but it can be c

Re: Non editable jsp with struts 2 templates - whats the best approach?

2009-04-21 Thread Lukasz Lenart
2009/4/21 Suneel : > I've a JSP where the user views a set of html input fields. The user > enters the values and submits the page and he is taken to another page > where he gets a chance to review his inputs before final submission. > All this JSP does is, it displays the inputs as plain text inst

RE: Non editable jsp with struts 2 templates - whats the best approach?

2009-04-21 Thread Security Management
AM To: Struts Users Mailing List Subject: Non editable jsp with struts 2 templates - whats the best approach? Hi, I've a JSP where the user views a set of html input fields. The user enters the values and submits the page and he is taken to another page where he gets a chance to review his inp

Non editable jsp with struts 2 templates - whats the best approach?

2009-04-21 Thread Suneel
Hi, I've a JSP where the user views a set of html input fields. The user enters the values and submits the page and he is taken to another page where he gets a chance to review his inputs before final submission. All this JSP does is, it displays the inputs as plain text instead of html inputs usi

Re: [Struts2.011] Best approach for limited view

2008-02-08 Thread Jeromy Evans
lbastil wrote: Please give me advices what would be the best approach in the struts 2 world to realize a limited view (authorization). In struts 1 I would have created a simple tag which is able to render it childs dependent on authorization of user, something like: ... some content

[Struts2.011] Best approach for limited view

2008-02-07 Thread lbastil
Please give me advices what would be the best approach in the struts 2 world to realize a limited view (authorization). In struts 1 I would have created a simple tag which is able to render it childs dependent on authorization of user, something like: ... some content ... Is there a better

Re: [S2] Best approach to separate look & feel with same backend code

2008-01-14 Thread Jeromy Evans
laim your inbox. Visit http://www.spammilter.com for details. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 6:21 AM To: Struts Users Mailing List Subject: Re: [S2] Best approach to separate look & feel with same backend

RE: [S2] Best approach to separate look & feel with same backend code

2008-01-14 Thread Neil Aggarwal
your inbox. Visit http://www.spammilter.com for details. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 6:21 AM > To: Struts Users Mailing List > Subject: Re: [S2] Best approach to separate look & feel with

Re: [S2] Best approach to separate look & feel with same backend code

2008-01-14 Thread stanlick
d Bollinger [mailto:[EMAIL PROTECTED] > > Sent: Sunday, January 13, 2008 3:38 PM > > To: 'Struts Users Mailing List' > > Subject: RE: [S2] Best approach to separate look & feel with > > same backend code > > > > Hi Neil, > > > > When yo

RE: [S2] Best approach to separate look & feel with same backend code

2008-01-13 Thread Neil Aggarwal
for details. > -Original Message- > From: Rod Bollinger [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 13, 2008 3:38 PM > To: 'Struts Users Mailing List' > Subject: RE: [S2] Best approach to separate look & feel with > same backend code > > Hi Nei

Re: [S2] Best approach to separate look & feel with same backend code

2008-01-13 Thread Antonio Petrelli
2008/1/13, Rod Bollinger <[EMAIL PROTECTED]>: > Additionally, if your current site is not already using Tiles, you should > consider refactoring to add this flexibility. With a Tiles and CSS-based > approach you can completely re-use your current middle and back-end tiers > with little or no modifi

RE: [S2] Best approach to separate look & feel with same backend code

2008-01-13 Thread Rod Bollinger
best approach will be to use CSS to make one site look and feel different than the other site. Additionally, if your current site is not already using Tiles, you should consider refactoring to add this flexibility. With a Tiles and CSS-based approach you can completely re-use your current middle and

[S2] Best approach to separate look & feel with same backend code

2008-01-13 Thread Neil Aggarwal
Hello: I am trying to figure out the best way to do this: I have two domains. I am going to develop two different web sites which will use the same backend database and have the same functionality, just a different look and feel. Should I: 1. Create two separate webapps? That seems poor

Re: [S2] LoginAction - Best approach feedback?

2007-02-27 Thread abpicol
e it helps... "Paul Saumets" <[EMAIL PROTECTED]> 27/02/2007 18:29 Please respond to "Struts Users Mailing List" To user@struts.apache.org cc Subject [S2] LoginAction - Best approach feedback? AcceptTentativeDeclineCalenda

[S2] LoginAction - Best approach feedback?

2007-02-27 Thread Paul Saumets
AcceptTentativeDeclineCalendar AcceptTentativeDeclineCalendar Hey, Looking for feedback on best way to implement a login action mechanism using Struts2/Spring/JPA Initially I had declared u

RE: Best approach

2006-06-12 Thread Ronald Traikovich
form and you can use that to determine which button was pressed in your action class. --Ron -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 8:56 AM To: user@struts.apache.org Subject: Best approach All, I have 4 buttons in a jsp. The

Best approach

2006-06-12 Thread Maya menon
All, I have 4 buttons in a jsp. The four should do four different things, with 2 being Submit and Cancel. Is it a good way to write 3 different action classes or just one action class ? Which is a good approach ? Thanks __ Do You

Re: Best approach to implement date dropdown

2004-12-07 Thread Ben
gt; Regards, > > Carlos > > > > - Original Message - > From: "Ben" <[EMAIL PROTECTED]> > To: "Struts" <[EMAIL PROTECTED]> > Sent: Tuesday, December 07, 2004 5:17 AM > Subject: Best approach to implement date dropdown > &g

Re: Best approach to implement date dropdown

2004-12-07 Thread Bill Siggelkow
If your users are happy with the separate drop-downs for month, date, and year than this approach allows the greatest control. However, since the data is spread between multiple input fields, I think you will find that it is easier to implement validate() yourself instead of trying to use the V

Re: Best approach to implement date dropdown

2004-12-07 Thread Carlos Cajina
the form of a DynaValidatorForm, maybe you could comment more on your intended solution... Regards, Carlos - Original Message - From: "Ben" <[EMAIL PROTECTED]> To: "Struts" <[EMAIL PROTECTED]> Sent: Tuesday, December 07, 2004 5:17 AM Subject: Best approa

Best approach to implement date dropdown

2004-12-07 Thread Ben
Hi I am using Struts with Velocity as a replacement to JSP. I would like to implement a date drop down list and love to hear your opinions on the best way to implement it. I like to have something like these on my ActionForms and use ValidatorPlugin to validate the data: [MM] [DD] [] Or >F