Iterate over an ArrayList of arrays

2010-05-11 Thread Thomas Lulé
Hi, I've got an ArrayListString[] named breadcrumbs in my action that I would like to display in my JSP. Something like : ul s:iterator value=breadcrumbs lia href=${value[1]}${value[0]}/a/li /s:iterator /ul I want to iterate

Re: Iterate over an ArrayList of arrays

2010-05-11 Thread Thomas Lulé
Thomas Lulé tho...@lule.fr: Hi, I've got an ArrayListString[] named breadcrumbs in my action that I would like to display in my JSP. Something like :        ul                s:iterator value=breadcrumbs                        lia href=${value[1]}${value[0]}/a/li                /s:iterator

Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
Hi, I've got a form with s:textfield mapped with Long variables in my action class. Also, my jsp displays some pre-computed information (that I retrieve from database in my action's method). When the user types letters in the number field, the type conversion fails, and the JSP is reloaded. But

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
That interceptor looks great, but is there any way to access request parameters in the prepare() method ? The http request provides an archiveProfileId parameter and I use that parameter to load my object archiveProfile. 2010/5/10 Lukasz Lenart lukasz.len...@googlemail.com: Use Preparable

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
by the time the prepare() method is called). Em 10-05-2010 09:39, Thomas Lulé escreveu: That interceptor looks great, but is there any way to access request parameters in the prepare() method ? The http request provides an archiveProfileId parameter and I use that parameter to load my object

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
:273) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) ... 2010/5/10 Thomas Lulé tho...@lule.fr: It works. Thanks a lot

Re: Struts 2 : redirect to action method on type conversion fail ?

2010-05-10 Thread Thomas Lulé
Nevermind, my stacktrace came from that issue : https://issues.apache.org/jira/browse/WW-2850 2010/5/10 Thomas Lulé tho...@lule.fr: One last thing : Even if everything works, I still get a stacktrace when I submit the form to save my object. I think that the params interceptor tries to set