Re: [s2] implement Parameterizable versus ServletContextListener versus another solution

2006-12-27 Thread Don Brown
I think the best solution is to keep business code like that out of Struts actions and even away from the Struts framework altogether. Personally, I'd use Spring to manage my services, then use the property placeholder to inject String constants into my services using a properties file. In the mo

[s2] implement Parameterizable versus ServletContextListener versus another solution

2006-12-27 Thread Wesley Wannemacher
Hello, Seeking some advice... I am hoping to create a standard method for passing configuration snippets to Actions. For instance, let's say I have a method that among other things, sends an email message. I don't want to hard-code which email server I am planning on using, so how do I tell the A

Re: ServletContextListener

2004-06-16 Thread gdeschen
IL PROTECTED]>, "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject:Re: ServletContextListener You are using struts so, instead of calling a jsp page for the response, call an action class that sets an appropriate "months" in the request s

Re: ServletContextListener

2004-06-16 Thread mike
ndering if there are other options... - Glenn mike 16/06/2004 03:25 PM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" , [EMAIL PROTECTED] cc: Subject: Re: ServletContextListener At 12:13 PM 6/16/2004, [EMAIL PROTECTED] wrote: >Greetings, >

Re: ServletContextListener

2004-06-16 Thread gdeschen
are other options... - Glenn mike <[EMAIL PROTECTED]> 16/06/2004 03:25 PM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] cc: Subject: Re: ServletCo

Re: ServletContextListener

2004-06-16 Thread mike
At 12:13 PM 6/16/2004, [EMAIL PROTECTED] wrote: Greetings, I have created a ServletContextListener that sets a Bean in the application scope. This Bean contains 2 list of Months... and these lists contain LabelValueBeans. My uncertainty is on the best way to get my JSP to use the appropriate List

ServletContextListener

2004-06-16 Thread gdeschen
Greetings, I have created a ServletContextListener that sets a Bean in the application scope. This Bean contains 2 list of Months... and these lists contain LabelValueBeans. My uncertainty is on the best way to get my JSP to use the appropriate List depending on the locale. JSP code