Re: getServletContext() in JSP
javax.servlet.ServletContext is a JSP implicit object and is exposed (e.g. automatically available in a JSP page) as "application". For example (in Orion 1.4.4): <%= application.getServerInfo() %> >Sure it does. > ><% ServletContext context=request.getServletContext(); %> works fine. > >On Mon, 29 Jan 2001, Romen Law wrote: > > > > > ello, > > > > I recently downloaded orion and tried my web app with it, it failed > > straight away because it does not recognise the method getServletContext(). > > I have developed my app using Tomcat and it worked fine.
RE: getServletContext() in JSP
i too had this problem when i converted from tomcat to orion about 6 months ago >From memory, (and its decidedly unreliable) I think you have to change all getServletContext() calls to getServletConfig().getServletContext() -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Romen Law Sent: Monday, 29 January 2001 11:08 AM To: Orion-Interest Subject: getServletContext() in JSP ello, I recently downloaded orion and tried my web app with it, it failed straight away because it does not recognise the method getServletContext(). I have developed my app using Tomcat and it worked fine. Is there a way to get around this in Orion? cheers romen IT Architect, Business And Data Services IBM GSA TEL: 612-84484716 FAX: 612-84484008 TIE: 84716
Re: getServletContext() in JSP
Sure it does. <% ServletContext context=request.getServletContext(); %> works fine. On Mon, 29 Jan 2001, Romen Law wrote: > > ello, > > I recently downloaded orion and tried my web app with it, it failed > straight away because it does not recognise the method getServletContext(). > I have developed my app using Tomcat and it worked fine. > > Is there a way to get around this in Orion? > > cheers > romen > > IT Architect, Business And Data Services > IBM GSA > TEL: 612-84484716 > FAX: 612-84484008 > TIE: 84716 > > --- Joseph B. Ottinger [EMAIL PROTECTED] http://epesh.com/ IT Consultant
getServletContext() in JSP
ello, I recently downloaded orion and tried my web app with it, it failed straight away because it does not recognise the method getServletContext(). I have developed my app using Tomcat and it worked fine. Is there a way to get around this in Orion? cheers romen IT Architect, Business And Data Services IBM GSA TEL: 612-84484716 FAX: 612-84484008 TIE: 84716