You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris Pat <cp...@yahoo.com> on 2005/11/21 18:12:00 UTC
getInitParameter struts TC5
Hello
What is the correct syntax in the struts-config.xml
and the syntax in the Action, to establish/retreive an
default parameter for the default application. I have
tried:
web.xml
<context-param>
<param-name>totalSamples</param-name>
<param-value>3</param-value>
</context-param>
action
String textNum =totalSamples =
servlet.getInitParameter("totalSamples");
What is the correct way? tia.
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: getInitParameter struts TC5
Posted by Rahul Akolkar <ra...@gmail.com>.
On 11/21/05, Chris Pat <cp...@yahoo.com> wrote:
> Hello
> What is the correct syntax in the struts-config.xml
> and the syntax in the Action, to establish/retreive an
> default parameter for the default application. I have
> tried:
> web.xml
> <context-param>
> <param-name>totalSamples</param-name>
> <param-value>3</param-value>
> </context-param>
>
> action
> String textNum =totalSamples =
> servlet.getInitParameter("totalSamples");
>
<snip/>
ServletContext#getInitParameter(String)
-Rahul
> What is the correct way? tia.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org