Re: paramsPrepareParamsStack and token interceptor

2014-08-21 Thread Fabian Richter
Done, see WW-4390 Am 20.08.2014 um 21:09 schrieb Lukasz Lenart: 2014-08-19 17:09 GMT+02:00 Fabian Richter frich...@mtg.de: Hi, when using paramsPrepareParamsStack with the convention plugin I'm getting multiple errors/warnings in devMode=true: Error setting expression 'token' with value

paramsPrepareParamsStack and token interceptor

2014-08-19 Thread Fabian Richter
Hi, when using paramsPrepareParamsStack with the convention plugin I'm getting multiple errors/warnings in devMode=true: Error setting expression 'token' with value ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ] Error setting expression 'token' with value ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ] At

Risk by allowing application* params

2014-08-07 Thread Fabian Richter
Hey, we are wondering why struts params interceptor excludes ^application\..* as a parameter? To what kind of vulernatbilities would we open our applications if we allow parameters starting with application to be set by struts? Thank you and best Fabian smime.p7s Description: S/MIME

Re: Not calling setters when callchaining into fields and using complex type, bug or feature?

2014-04-04 Thread Fabian Richter
+02:00 Fabian Richter frich...@mtg.de: Hey, not sure this is a Bug or a Feature, but I ran into the following troubles, someone might be able to explain: class ComplexType { private DifferentComplexType test; public void setTest(DifferentComplexType test

Re: Not calling setters when callchaining into fields and using complex type, bug or feature?

2014-04-04 Thread Fabian Richter
-04-04 8:47 GMT+02:00 Fabian Richter frich...@mtg.de: Yeah, I was having Converters for both types, AND DifferentComplexType is an enum. The problem was, in the converters convertFromString method the enum.valueOf() should have thrown an IllegalArgumentException when calling it with an emtpy String

Not calling setters when callchaining into fields and using complex type, bug or feature?

2014-04-03 Thread Fabian Richter
Hey, not sure this is a Bug or a Feature, but I ran into the following troubles, someone might be able to explain: class ComplexType { private DifferentComplexType test; public void setTest(DifferentComplexType test){ this.test = test; } public

Re: Regarding latest struts 2.3.x changes and issues with DMI and Wildcards

2014-01-30 Thread Fabian Richter
Am 30.01.2014 06:57, schrieb Lukasz Lenart: Do not depend only on container authentication mechanism. So you would discourage the use of like Spring Security as a sole authentication mechanism? Why? Best Fabian smime.p7s Description: S/MIME Cryptographic Signature

Label CSS or referencing for addFieldError

2013-12-11 Thread Fabian Richter
Hi, how can one add a specific css class/style of the label when instanciating like: s:textfield label=bla name=commentField id=commentField / I now had to change theme=simple and add the css class to the td of the label but with that I can not reference it with the name when a fieldError

Getting lists back from struts

2013-08-07 Thread Fabian Richter
Hi I have encountered this issue a couple of times, always found a way to code around but now I really need to ask: Can struts create lists/arrays (or whatever collection) when e.g. using public class MyAction extends ActionSupport { public ListChoice getChoices() {

WW if question

2013-07-09 Thread Fabian Richter
Hey, quick question (I know WW is EOL maybe someone will help me nonetheless): Why does ww:if test=!searchResult.empty || !#searchResult.empty not work as expected? Depending on the call, searchResult is either from the action or set by ww:set but the if only evaluates the one from the

Re: WW if question

2013-07-09 Thread Fabian Richter
Am 09.07.2013 11:07, schrieb Lukasz Lenart: Have you tried this: ww:if test=%{!searchResult.empty || !#searchResult.empty} Yes, I did, didnt work :( smime.p7s Description: S/MIME Kryptografische Unterschrift

Re: WW if question

2013-07-09 Thread Fabian Richter
Am 09.07.2013 11:15, schrieb Lukasz Lenart: getters? And maybe use just one value instead of two searchResult? Getters are present for the one from the action, without the # I need both for an evil hack, I have a page that consists of a form and a list which are seperate actions and after

DateTimePicker not showing

2013-07-02 Thread Fabian Richter
Hi, I am still trying to migrate our application from Webwork to Strut2. The site uses sitemesh with freemarker templates and used a ww:datepicker.../ from Webwork. This tag was replaced in struts2 with sx:datetimepicker but doesnt show up in my application. I added sx:head ... in the

Re: DateTimePicker not showing

2013-07-02 Thread Fabian Richter
can either use directly (using s:textfield and js) or via the struts2 jquery plugin. Antonios On 2 July 2013 09:20, Fabian Richter frich...@mtg.de wrote: Hi, I am still trying to migrate our application from Webwork to Strut2. The site uses sitemesh with freemarker templates and used

Re: Struts dispatcher apparently not started

2013-06-27 Thread Fabian Richter
/struts2/dispatcher/ng/filter/StrutsPrepareAndExecuteFilter.html try to point to this filter. Usually get the above message when you are using struts2 tags in jsp trying to display and not passing through the StrutsPrepareAndExecuteFilter filter. On Wed, Jun 26, 2013 at 4:07 PM, Fabian Richter frich

Re: Struts dispatcher apparently not started

2013-06-27 Thread Fabian Richter
Hi Lukas, I am getting that on every call: for example the root path: https://localhost/app/ which forwards to https://localhost/app/index.html Best Fabian Am 27.06.2013 07:38, schrieb Lukasz Lenart: What URL do you enter to get the exception? Regards smime.p7s Description: S/MIME

Re: Struts dispatcher apparently not started

2013-06-27 Thread Fabian Richter
Am 27.06.2013 08:21, schrieb Lukasz Lenart: Do you have IndexAction or so defined? Yes, and many other actions. Wann see the code? Pretty much standard :/ Could you share your struts.xml? Uhm, its a 500 line file thats including a few others. I might have to anonymize and put it on

Re: Struts dispatcher apparently not started

2013-06-27 Thread Fabian Richter
Am 27.06.2013 08:23, schrieb Lukasz Lenart: The questions is what its doing? If something that doesn't depend on Struts, before. It handles the certificate based authentication and configures the user session before displaying any web content. So before it is? smime.p7s Description:

Re: Struts dispatcher apparently not started

2013-06-27 Thread Fabian Richter
Am 27.06.2013 08:31, schrieb Lukasz Lenart: How did you define index action? bean id=indexAction class=my.webapp.action.IndexAction singleton=false property name=roleIdentifiers list valuerole.id/value /list /property /bean In

Re: Struts dispatcher apparently not started

2013-06-27 Thread Fabian Richter
Am 27.06.2013 08:42, schrieb Lukasz Lenart: This how you build the action ;-) Please show me your struts.xml ;-) Sorry, after I sent it, I was wondering if that was what you meant :) action name=index class=indexAction method=index result name=success/WEB-INF/pages/index.jsp/result

Re: Struts dispatcher apparently not started

2013-06-27 Thread Fabian Richter
Am 27.06.2013 08:46, schrieb Lukasz Lenart: Ok, looks good. So why I said it forwards to https://localhost/app/index.html ? I meant when I call https://localhost/app/ the url is rewritten by the app to https://localhost/app/index.html smime.p7s Description: S/MIME Kryptografische

Re: Struts dispatcher apparently not started

2013-06-27 Thread Fabian Richter
Am 27.06.2013 08:59, schrieb Lukasz Lenart: 2013/6/27 Fabian Richter frich...@mtg.de: I meant when I call https://localhost/app/ the url is rewritten by the app to https://localhost/app/index.html Looks like one of your filters messing things up. Try to comment out this filter-mapping

Re: Struts dispatcher apparently not started

2013-06-27 Thread Fabian Richter
Am 27.06.2013 09:05, schrieb Lukasz Lenart: Hmm... so why do you map it to *.html? And not to /* or *.action? It was like that in the original web.xml when the application ran with Webwork. I also tried /* without changes. But I had some progress in my Dispatcher not started problem:

if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Hey, so I tried to use the s:if test= tag in one of my jsps and couldnt get neither working: s:if test=!empty certificate.statusisTrue/s:if s:if test=certificate.status == 1isTrue/s:if s:if test=%{certificate.status == 1}isTrue/s:if s:if test=%{#certificate.status == 1}isTrue/s:if but

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Fabian, Can you give as the code of the Action that is in the Value Stack? Antonios On 27 June 2013 09:16, Fabian Richter frich...@mtg.de wrote: Hey, so I tried to use the s:if test= tag in one of my jsps and couldnt get neither working: s:if test=!empty certificate.statusisTrue/s:**if s:if

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Stupid me, getStatus was what I was reading and that one returns an int. Am 27.06.2013 10:33, schrieb Fabian Richter: Hi Antonios, you mean the java source Code or something I can extract from the jsp? The source code is confidential. I checked the get/set methods and getId on certificate

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
June 2013 09:42, Fabian Richter frich...@mtg.de wrote: Stupid me, getStatus was what I was reading and that one returns an int. Am 27.06.2013 10:33, schrieb Fabian Richter: Hi Antonios, you mean the java source Code or something I can extract from the jsp? The source code is confidential. I

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Am 27.06.2013 11:20, schrieb Antonios Gkogkakis: I would temporarily remove ${certificate.status} from the else and I would check if the getStatus is called for the conditionals Yes, it is called. I was hoping it wasn't :( What now? smime.p7s Description: S/MIME Kryptografische

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
the == 1 in the jsp create a method on the certificate boolean isValid() { return status==1} and so on. I know it doesn't answer your original question but it solves the problem and it's more maintenable IMHO. Antonios On 27 June 2013 10:34, Fabian Richter frich...@mtg.de wrote: Am 27.06.2013 11

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Am 27.06.2013 12:43, schrieb Antonios Gkogkakis: I assume you are on Struts2. Yes, I am, more precisely I am migrating an application from Webwork to Struts2. I'm not familiar with the ${} expression, but you are right, there is an OGNL null handler that will instantiate objects for you if

Re: if/elseif tag syntax

2013-06-27 Thread Fabian Richter
Am 27.06.2013 12:59, schrieb Antonios Gkogkakis: But how would the framework know with what to populate it? You either do it manually in the body of the action that you execute to reach the view ,e.g., certificate = //logic to get the certificate or you can implement the ModelDriven interface

Struts dispatcher apparently not started

2013-06-26 Thread Fabian Richter
Hello all, I am faily new with struts, and to get a grip on the mechanics I volunteered to migrate one of our applications from Webwork to struts2 latest. So far I made progress, the application is not only running but also rendered some UI in the browser. But I have exceptions like The