Initializing Parameters

"Andy Schrader" <[email protected]>
Newsgroups gmane.comp.java.mvc.devel
Message-ID <000001c2682a$33eefa50$6401a8c0@hpvectra>
I'm writing a web application using Tomcat and Struts. I'm trying to
place parameters in my web.xml file for use in the application (DB
username, smtp server, etc).  I'm having trouble finding examples of the
use of context-params and init-params, which one do I use? 
 
I think I use context-params but I have an HttpServletRequest which
doesn't have the getInitParamater() method. is that even the right
direction? 
 
I'm just looking for a way to pass some variables in without have to
recompile every time I change one.  Any help in the way of example code
would be much appreciated.
 
Thanks, 
Andy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.