Re: Struts2 Checkboxlist

2019-02-04 Thread Prasanth Pasala
I am using the defaultStack but the ArrayList used for the checkboxes is of type Long. If we change it to ArrayList of Boolean would the interceptor set the values to false? Or is this only applicable if you have individual checkboxes rather than checkboxlist? Thanks, Prasanth On 2/4/19 4:29

RE: Struts2 Checkboxlist

2019-02-04 Thread Paul Zepernick
Yes, setFoo is only called if the checkbox is checked. However, Struts 2 does have a checkbox interceptor: https://struts.apache.org/core-developers/checkbox-interceptor.html This interceptor defaults checkbox Boolean's to False if the box is not checked. This is part of the default

Re: Struts2 Checkboxlist

2019-02-04 Thread Prasanth Pasala
Is that how Struts2 is expected to work? Meaning setFoo would not be called if non of the Foo checkboxes are selected? I know that is how Struts1 worked. Thanks, Prasanth On 2/2/19 7:08 PM, Prasanth Pasala wrote: > Hi Yasser, > > When none of the checkboxes is selected the setFoo is not getting

Re: [struts-user] XML based configuration

2019-02-04 Thread Dave
Hi Lukasz, Here's a summary of how Roller uses Struts and Tiles: Roller uses the StrutsPrepareAndExecute filter and maps it to all requests ending with “.rol” https://github.com/apache/roller/blob/master/app/src/main/webapp/WEB-INF/web.xml Roller’s actions are defined in struts.xml and return

Re: Escaping dollar sign and curly brackets

2019-02-04 Thread Micael Carreira
Hey Lukasz, thanks for your reply. Actually, I don't want to use struts tag replacement mechanism, but one of my own. I already solved my problem as you probably read by now. Cheers and thanks for your help. On 04/02/19 10:10, Lukasz Lenart wrote: Using ${} or %{} is a proper way to inject

Re: Escaping dollar sign and curly brackets

2019-02-04 Thread Micael Carreira
Hey Yasser, Thanks for your reply. I tought I tried every combination you suggested, but it seems that I missed the *$'{placeholder}'* variant. This works for me. Thanks for your help! On 02/02/19 13:25, Yasser Zamani-2 [via Struts] wrote: From: Micael Carreira Sent: Friday, February 1,

Re: Escaping dollar sign and curly brackets

2019-02-04 Thread Lukasz Lenart
Using ${} or %{} is a proper way to inject values into a message https://struts.apache.org/getting-started/message-resource-files.html#message-resource-property-files In your case a "getPlaceholder()" will be used to fetch the value from the current action. Regards -- Łukasz + 48 606 323 122