to use the utility in non Struts related classes either,
this is purely for my Struts action classes use.
Jon.
-Original Message-
From: Brian DeLuca [mailto:[EMAIL PROTECTED]]
Sent: 01 December 2002 23:56
To: [EMAIL PROTECTED]
Subject: RE: Obtaining the ActionServlet con
[mailto:[EMAIL PROTECTED]]
Sent: 01 December 2002 23:56
To: [EMAIL PROTECTED]
Subject: RE: Obtaining the ActionServlet context from a utility class
To use it in a utility class would mean you have to import the http
packages into your utility class -- not a good practice since other
projects,
To use it in a utility class would mean you have to import the http packages into your
utility class -- not a good practice since other projects, that are not web oriented
may want to use them.
Why not just pass the attribute as a parameter to the method?
--- On Sun 12/01, Jon
Does anybody know how to get hold of the action servlet from a utility
class
so to get an attribute from the servlet context? I'm basically trying
to do
this from a utility class but don't know how to go about it.
Jon.
*-*
Jonathan Holloway,
4 matches
Mail list logo