There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action.
Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure & Operations [EMAIL PROTECTED] (614) 213-6100 "Simon Kelly" <[EMAIL PROTECTED]> on 07/30/2003 08:31:25 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: "Wish you were here"' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]