Loverly! Thanks very much guys.
Have a good weekend. Cheers Simon ----- Original Message ----- From: "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 6:53 PM Subject: RE: getting a file path to /WEB-INF from a HttpSession > try > > request.getSession(false).getServletContext().getRealPath("/WEB-INF/...")) > > or, in an action you could do > > getServlet().getServletContext().getRealPath("/WEB-INF/..."); > > -- > Voytek Jarnot > Quidquid latine dictum sit, altum viditur. > > > > -----Original Message----- > > From: Simon Kelly [mailto:[EMAIL PROTECTED] > > Sent: Friday, June 27, 2003 11:44 AM > > To: Struts Users Mailing List > > Subject: getting a file path to /WEB-INF from a HttpSession > > > > > > Hi all, > > > > I'm struggling with this a bit. > > > > I have a class, that I call from an Action class. I am trying > > to get the > > path to WEB-INF (C:\tomcat\webapps\myApp\WEB_INF) but all I > > have to play > > with is the HTTPServletRequest/Responce. I can do it in a > > class extending > > javax.servlet.Servlet, but I haven't a clue with this way. > > > > My books and web searches have turned up either zip or useless junk. > > > > Any help would be appreciated! > > > > Cheers > > > > Simon > > > > "I have often wondered how it is that every man loves himself > > more than all > > the rest of men, but yet sets less value on his own opinion > > of himself than > > on the opinion of others." -- Georg Christoph Lichtenberg > > > > 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] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]