struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian DeLuca" <bdelu...@iwon.com>
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
them.

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



 --- On Sun 12/01, Jonathan Holloway  jph8@aber.ac.uk  wrote:From: Jonathan Holloway [mailto:
jph8@aber.ac.uk]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
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,               
 Dept. Of Computer Science,       
 Aberystwyth University, 
 Ceredigion,                      
 West Wales,                      
 SY23 3DV.                        
                                  
 07968 902140                     
 http://users.aber.ac.uk/jph8     
*---------------------------------------------*
 


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

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