You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Omar Didi <od...@Cyveillance.com> on 2005/03/10 22:44:06 UTC
getting init-params from web.xml
is there a way to either get <context-param> or <init-param> from web.xml inside an Action class.
i know within a jsp or servlet i can use getServletContext().getInitParameter("com.index"). this method doesn t work inside an Action class.
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: getting init-params from web.xml
Posted by Matt Raible <li...@raibledesigns.com>.
servlet.getServletContext() should work.
Matt
On Mar 10, 2005, at 2:44 PM, Omar Didi wrote:
> is there a way to either get <context-param> or <init-param> from
> web.xml inside an Action class.
> i know within a jsp or servlet i can use
> getServletContext().getInitParameter("com.index"). this method doesn t
> work inside an Action class.
> thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org