struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian DeLuca" <>
Subject RE: Obtaining the ActionServlet context from a utility class
Date Sun, 01 Dec 2002 23:56:23 GMT

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

Why not just pass the attribute as a parameter to the method?

 --- On Sun 12/01, Jonathan Holloway  wrote:From: Jonathan Holloway [mailto:]To: struts-user@jakarta.apache.orgDate: Sun, 1 Dec 2002 19:47:20 -0000Subject:
Obtaining the ActionServlet context from a utility classDoes anybody know how to get hold
of the action servlet from a utility
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.
 Jonathan Holloway,               
 Dept. Of Computer Science,       
 Aberystwyth University, 
 West Wales,                      
 SY23 3DV.                        
 07968 902140                  

Can a Web portal forever change your life?
Win up to $25 Million on iWon - click here!

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message