struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Lee" <mle...@hotmail.com>
Subject Re: InitParameter and Actions
Date Fri, 06 Sep 2002 14:03:57 GMT
They have a parameter="someValue"
for every action mapping you set up. Is that what you want?
You can get the value in your Action class by calling
String prameterValue = mapping.getParameter();
hope this helps,
Mike

----- Original Message -----
From: "Smith, Johnathan M." <jsmith4@ubspw.com>
To: <struts-user@jakarta.apache.org>
Sent: Friday, September 06, 2002 8:55 AM
Subject: InitParameter and Actions


> In the pass I setup InitParameter's in my web.xml file for my control
> (servlet) and the control pass the string on to each model.  How can I do
> the same thing in Struts. I need to pass a string like a database name to
> every action object.  I would like it in a files so if I go from dev to QA
> to prod I only have to change the name in a file
>
>
> Johnathan Mark Smith
> Divisional Assistant Vice President
> Information Systems Division
>
> Phone: (201) 352-1387
> Pager: (201) 718-1370
> Email: jsmith4@ubspw.com
> Text Messaging: jsmith4_pager@painewebber.com
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message