Re: [ANN] Struts 2.3.15.2 GA release available - security fix

2013-10-15 Thread Lukasz Lenart
2013/10/11 Volker Krebs : > Am 11.10.2013 13:22, schrieb Lukasz Lenart: > >> 2013/10/11 Volker Krebs : >>> >>> Thank you, good news. >>> >>> If you want you can give me the current state and I can run it on our >>> test >>> system. We're implicitly testing quite a lot of struts2 functionality. >> >

Re: "Cancel" button is not redirecting

2013-10-15 Thread Antonio Sánchez
Set to false. But having same results set to true. I'm using action="index" approach. Now, cancel always launches 404. El Martes, 15 de Octubre de 2013 12:59:32 p.m., Paul Benedict escribió: If you want to do a redirect, you need your action mapping to handle "cancel" and use a redirectActi

Re: "Cancel" button is not redirecting

2013-10-15 Thread Lukasz Lenart
is DMI set to true? 2013/10/15 Antonio Sánchez : > Support for redirectAction: and redirect: prefixes was removed as from > version 2.3.15.1. So, let's forget redirection this way. > > I was using redirection because using > > (the > same than name="action:index"?) > > throws error 404, resource

Re: "Cancel" button is not redirecting

2013-10-15 Thread Antonio Sánchez
Support for redirectAction: and redirect: prefixes was removed as from version 2.3.15.1. So, let's forget redirection this way. I was using redirection because using (the same than name="action:index"?) throws error 404, resource not available: "myapp/index.action". Using method does not wo

Re: "Cancel" button is not redirecting

2013-10-15 Thread Paul Benedict
If you want to do a redirect, you need your action mapping to handle "cancel" and use a redirectAction result. On Tue, Oct 15, 2013 at 12:53 PM, Antonio Sánchez wrote: > Hi. > > Simple CRUD sample application, paramsPrepareParams, wildcard method > selection. > > Cancel button in edit form, when

"Cancel" button is not redirecting

2013-10-15 Thread Antonio Sánchez
Hi. Simple CRUD sample application, paramsPrepareParams, wildcard method selection. Cancel button in edit form, when reached for creating a new employee bean, is not cancelling and redirecting to index, but actually performing form action, which is "save". Conversely, cancel is working pro

Re: Which S2 features have ASM dependencies?

2013-10-15 Thread Greg Lindholm
Thanks On Tue, Oct 15, 2013 at 11:08 AM, Dave Newton wrote: > The ClassFinder stuff in XWork; for annotation processing. > > > On Tue, Oct 15, 2013 at 10:56 AM, Greg Lindholm >wrote: > > > Which features of S2 use ASM? > > > > The S2 project dependencies > > (http://struts.apache.org/release/2

Re: Which S2 features have ASM dependencies?

2013-10-15 Thread Dave Newton
The ClassFinder stuff in XWork; for annotation processing. On Tue, Oct 15, 2013 at 10:56 AM, Greg Lindholm wrote: > Which features of S2 use ASM? > > The S2 project dependencies > (http://struts.apache.org/release/2.3.x/struts2-core/dependencies.html) > shows that xworks depends on: > - asm-3.3.

Which S2 features have ASM dependencies?

2013-10-15 Thread Greg Lindholm
Which features of S2 use ASM? The S2 project dependencies (http://struts.apache.org/release/2.3.x/struts2-core/dependencies.html) shows that xworks depends on: - asm-3.3.jar - asm-commons-3.3.jar - asm-tree-3.3.jar These ASM jar don't seems to actually be needed by a project I have so I'm guessin

Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Umesh Awasthi
Dave, i am agree with you, i just followed doc and than it started giving me some strange issues in validations. I tried to debug underlying API but with no success. On doing some more Googling i came across create new instance outside getModel() and it started working as expected. Thanks Umesh

Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Dave Newton
Wouldn't this return a new ProfileDTO every single time getModel() is called? This, in turn, would mean that if you were validating model.foo and model.bar that it'd be called twice. I have not verified this, perhaps there's some magic (e.g., spooky) caching happening somewhere, but to my mind, w

Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Christoph Nenning
> Just to add more information by changing code to > > ProfileDTOgetModel md=new ProfileDTOgetModel(); > @Valid > public ProfileDTOgetModel() > { > return md; > } > } > > Bean Validation is working fine, so i am confused which is right way to use > Model driven. > I took ref

Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Umesh Awasthi
Just to add more information by changing code to ProfileDTOgetModel md=new ProfileDTOgetModel(); @Valid public ProfileDTOgetModel() { return md; } } Bean Validation is working fine, so i am confused which is right way to use Model driven. I took reference from http://struts.

Re: Question about Model Driven Interface

2013-10-15 Thread Amol Ghotankar
Hi Umesh, Both you mentioned are same. ModelDriven is best used to create new object if they do not exist. So your getModel method must be ProfileDTOModel md; public ProfileDTOModel getModel() { if(md != null)// Or Some other condition as required by your model. Typically check for Id

Question about Model Driven Interface

2013-10-15 Thread Umesh Awasthi
Hi All, Have rarely used model driven interface and not sure about how exactly it work. Can any one point me what will be difference between ProfileDTOModel md = new ProfileDTOModel(); publicProfileDTOModel getModel() { return md; } and public ProfileDTOModel getMod

Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Umesh Awasthi
No, my issue is something different.. some how underlying Valitor API is not validating all fields and its happening only when i am using Model driven, for rest cased everything is working fine for same bean object and for same validations. On Tue, Oct 15, 2013 at 3:15 PM, Christoph Nenning < chr

Re: S2-018, Struts 2.3.15.2: action: prefix for buttons not working after upgrade to Struts 2.3.15.2

2013-10-15 Thread Markus Fischer
Hi Greg. > So the statement about Backwards Compatibility on > http://struts.apache.org/release/2.3.x/docs/s2-018.html is incorrect? > > *Backward Compatibility* > After upgrading to Struts >= 2.3.15.2, applications using the "action:" > should still work as expected. > > This doesn't appear to

Antwort: Strange issue with Model driven and Bean validation

2013-10-15 Thread Christoph Nenning
> Hi All, > > I am facing a strange issue while trying to validate a bean using bean > validation.I am using model driven interface to pass form field values to > Action and here is the action code > > public class ModelDriven extends ActionSupport implements > com.opensymphony.xwork2.ModelDriv

Strange issue with Model driven and Bean validation

2013-10-15 Thread Umesh Awasthi
Hi All, I am facing a strange issue while trying to validate a bean using bean validation.I am using model driven interface to pass form field values to Action and here is the action code public class ModelDriven extends ActionSupport implements com.opensymphony.xwork2.ModelDriven{ @Valid

Re: Antwort: Re: Problems with type conversion and special characters

2013-10-15 Thread Alessio Matteo
Really I was using a custom type converter (with annotations on getters & setters) but I had the problem that when typeconversionexception was thrown the dynamic contents on my web page (objects retrieved from db or from actions) didn't display. Really I don

Antwort: Re: Problems with type conversion and special characters

2013-10-15 Thread Christoph Nenning
> > Thank you so much, I solved the special characters problems by setting > the struts i18n constant to ISO-8859-1! > About the conversion error, I know it was a dev mode warning, but when > the exception was thrown every dynamic content in my page disappeard... > Anyway I solved the issue by