You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Madhavi Thottempudi <ma...@caret.cam.ac.uk> on 2002/10/04 12:34:50 UTC
global variables
Hi!
Where can I set global variables and get them back in Struts. Because I see
that Action beans extending struts Action bean doesn't get servlet in their
perform method.
public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Any suggestions???
Thanks
-M
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: global variables
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 4 Oct 2002, Madhavi Thottempudi wrote:
> Date: Fri, 04 Oct 2002 11:34:50 +0100
> From: Madhavi Thottempudi <ma...@caret.cam.ac.uk>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: struts-user@jakarta.apache.org
> Subject: global variables
>
> Hi!
> Where can I set global variables and get them back in Struts. Because I see
> that Action beans extending struts Action bean doesn't get servlet in their
> perform method.
>
That's because you can just call getServlet() on your Action -- it's part
of the base class :-).
Craig
> public ActionForward perform(ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
>
> Any suggestions???
>
> Thanks
> -M
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: global variables-update
Posted by Madhavi Thottempudi <ma...@caret.cam.ac.uk>.
I mean setting application scope variables - using setServletContext or
something like that and getting them back. Any ideas??
Thanks again
-M
At 11:34 04/10/2002 +0100, you wrote:
>Hi!
>Where can I set global variables and get them back in Struts. Because I
>see that Action beans extending struts Action bean doesn't get servlet in
>their perform method.
>
>public ActionForward perform(ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
>
>Any suggestions???
>
>Thanks
>-M
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB
Tel: +44 (0) 1223 765382
madhavi@caret.cam.ac.uk
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>