Yup. It depends on what visibility (i.e. scope) you want.


At 11:38 pm 06-09-2002, you wrote:
>I got it working but putting it into the strut-config.xml for the mapping
>
>-----Original Message-----
>From: John Yu [mailto:[EMAIL PROTECTED]]
>Sent: Friday, September 06, 2002 10:44 AM
>To: Struts Users Mailing List
>Subject: Re: Actions and Parameters
>
>Struts doesn't prescribe a special way of doing it. Meaning that you
>achieve it the good old way: put the configuration as a <init-param> of the
>Struts' ActionServlet and access it via
>Action.getServlet().getServletContext().getInitParameter(paramName).
>
>
>At 07:15 pm 06-09-2002, you wrote:
> >Please keep in mind that I am new to struts and I have a project that I
>have
> >to get done and a fast rate.  I would like to know where should I setup a
> >parameter/string that I need to use in every action. In my old MVC world I
> >would make a initparameter on my control (servlet) and the control would
> >pass the string to each model.  How do I do it in struts?
> >
> >
> >
> >Johnathan Mark Smith
> >Divisional Assistant Vice President
> >Information Systems Division

-- 
John Yu                       Scioworks Technologies
e: [EMAIL PROTECTED]         w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Don't develop Struts Apps without it!"
Copyright (c) 2002 John Yu/Scioworks Technologies. All rights reserved.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to