Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[s2] implement Parameterizable versus ServletContextListener versus another solution

Wesley Wannemacher

2006-12-27

Replies:

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 Action that I
want to use serverX? I figure that whatever I do now, I'll be
copying/pasting (if not extending) in the future, so what would be the
best method, or what are you guys doing?

--
Wes Wannemacher
Double A Trailer Sales, Inc.
wesw@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.