Struts 2.2.1.1 : reload .properties files

2011-03-31 Thread Sami Dalouche
Hi, I cannot get auto-reload of .properties files to work with struts 2.2.1.1. (with the mail sample app) Steps to reproduce: - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211 - Extract - cd src/apps/mailreader - change pom.xml: 0 - change src/main/java/struts.xm

Re: Struts 2.2.1.1 : reload .properties files

2011-04-01 Thread Sami Dalouche
want jetty to redeploy. I directly edit the files in target/classes, otherwise jetty tries to completely restart the webapp. Sami On 11-04-01 01:28 AM, Lukasz Lenart wrote: 2011/3/31 Sami Dalouche: - change pom.xml:0 "scanIntervalSeconds Optional. The pause in seconds between swe

overriding struts.xml settings from web.xml

2011-04-08 Thread Sami Dalouche
Hi, http://struts.apache.org/2.x/webxml.html explains how to set struts2 params from web.xml. I have several questions regarding this : 1/ If the same setting is declared both in web.xml and in struts.xml, which one wins ? 2/ the example sets the setting on StrutsPrepareAndExecuteFilter. What

[Struts 2] : Zero Configuraiton : some feedback

2007-10-02 Thread Sami Dalouche
nly way to get it working it by rebooting the web application). I have absolutely no idea about the reasons that could cause that... Have you heard of anything similar before ? Regards, Sami Dalouche - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Has anyone developed a web app using struts 2 and agegi security framework?

2007-10-07 Thread Sami Dalouche
emesh <#assign authz=JspTaglibs["/WEB-INF/tld/authz.tld"] /> <@authz.authorize ifNotGranted="ROLE_USER"> ... And that should be enough to get acegi working with struts2.. Regards, Sami Dalouche Le dimanche 07 octobre 2007 à 15:12 +0700, Tuyen Dinh Van a écrit : > I

Re: how to keep object from action to action

2007-10-07 Thread Sami Dalouche
Hi, you should take a look at Spring Web Flow (http://www.springframework.org/webflow) and its Struts2 plugin (http://cwiki.apache.org/S2PLUGINS/spring-webflow-plugin.html). Regards, Sami Dalouche Le lundi 08 octobre 2007 à 15:03 +1000, Zoran Avtarovski a écrit : > Action chaining isn't

Re: actionPackages parameter provokes PermGen memory error

2007-10-08 Thread Sami Dalouche
Hi, have you tried spring's IntrospectionCleanupListener ? http://www.springframework.org/docs/api/org/springframework/web/util/IntrospectorCleanupListener.html It looks like the problem you are experiencing is the one the listener claims to solve. Regards, Sami Dalouche On Mon, 2007-10-

Re: Struts 2 Freemarker Templates

2007-10-08 Thread Sami Dalouche
Hi, you should be able to access your start and stop variables using : ${parameters.start} and ${parameters.stop} expressions in your FTL template. Regards, Sami Dalouche Le lundi 08 octobre 2007 à 12:59 -0400, Jason Deffenbaugh a écrit : > I'm trying to make a custom template

RE: Struts 2 Themes

2007-10-09 Thread Sami Dalouche
can see : final public static String TEMPLATE = "text"; => So, the template name is "text" ;) Regards, Sami Dalouche Le mardi 09 octobre 2007 à 13:07 -0400, Jiang, Jane (NIH/NCI) [C] a écrit : > Sorry, my fault. I did not notice the code I used to test checkbox &

Re: dojo version in struts 2.0.11?

2007-11-09 Thread Sami Dalouche
pure HTML widgets if JS is not enabled). So, do not hesitate to drop me an email if you want to look at the code, or plan to cleanly repackage it for Struts, it's available under whatever open source license you prefer. Regards, Sami Dalouche On Fri, 2007-11-09 at 21:25 +1100, Jeromy Evans wro

Re: dojo version in struts 2.0.11?

2007-11-10 Thread Sami Dalouche
version I currently use. Alvaro- Which version are you targetting ? Regards, Sami Dalouche Le vendredi 09 novembre 2007 à 12:25 +0100, Alvaro Sanchez-Mariscal a écrit : > Hi Sami, > > My company (Salenda) is willing to contribute to get a > production-quality version. > &g

Struts2 : create URLs programmatically

2007-05-27 Thread Sami Dalouche
ethods on which determineActionUrl() depends, but it needs an ActionmMapper instance that is normally @Inject'ed. How am I supposed to fetch this instance ? Thanks for your help, Sami Dalouche - To unsubscribe, e-mail: [

Re: S2 tag property calls with arguments?

2007-05-27 Thread Sami Dalouche
call using OGNL, using the simple syntax : myMethod(param1, param2) so, in your case, it could be getVehicles('car') Hope that helps, Regards, Sami Dalouche Le dimanche 27 mai 2007 à 20:15 +0200, Torsten Römer a écrit : > I guess this has been asked before but I have trouble find

Re: S2 tag property calls with arguments?

2007-05-27 Thread Sami Dalouche
. Struts2 has arbitrarily chosen to choose the Value Stack as the ROOT. So, that means that all the properties you call and your action's properties. Another popular web framework, Tapestry, also uses OGNL. The Component / Page in Tapestry is the OGNL ROOT. Hope that helps, Sami Dalouche Le

& characters are encoded as & in OGNL parameters

2007-05-28 Thread Sami Dalouche
? Thanks for your help, Sami Dalouche - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: & characters are encoded as & in OGNL parameters

2007-05-28 Thread Sami Dalouche
ruts to process it before I do. So, is it possible to disable this & encoding ? Thanks, Sami Dalouche - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: & characters are encoded as & in OGNL parameters

2007-05-29 Thread Sami Dalouche
nid pseudo-parameter to the URLs.. Regards, Sami Le mardi 29 mai 2007 à 15:35 -0400, Laurie Harper a écrit : > Sami Dalouche wrote: > > Hi, > > > >>> Is it possible to disable this behaviour somehow ? > >> Depends how you're using the URL. Are you

Re: [S2] Design patterns

2007-06-11 Thread Sami Dalouche
with useless stuff I only use 10% of the time. Just KISS :) Regards, Sami Dalouche On Mon, 2007-06-11 at 05:52 -0700, meeboo wrote: > Hey all > > How do you build up your Struts 2 applications architecture wise? Say for > instance that you have a User model object. Do you create an ac

Binding Java 5 Enums..

2007-02-11 Thread Sami Dalouche
' (and I do have my get/set sexTrait() on the action. { .. } Does anyone know what could cause the problem ? Thanks for your help, Sami Dalouche - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts2 : TypeConverter and Null Values

2007-02-25 Thread Sami Dalouche
ss, to use some NullSafeTypeConverter, associated to the java.lang.Object type. Several questions : 1] Is this the best approach ? 2] Why doesn't Struts ship NullSafeTypeConverter by default ? Regards, Sami Dalouche - To unsubscribe, e-ma

Re: Cross site scripting issue

2007-03-14 Thread Sami Dalouche
Hi, If you want to escape HTML, you can use Jakarta Commons-Lang StringEscapeUtils class : http://jakarta.apache.org/commons/lang/apidocs/org/apache/commons/lang/StringEscapeUtils.html#escapeHtml(java.lang.String) Personally, I am using the Radeox Wiki engine (http://www.radeox.org/space/start) t