ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Schrader" <tschra...@gmail.com>
Subject Re: Using com.ibaits.struts to work with files in the web application
Date Mon, 24 Apr 2006 13:20:35 GMT
Hi Meindert,

It appears you're trying to repurpose the example PetStore
application. I'm not sure if this is the proper forum for this sort of
question, but anyway....

You should use ServletContext.  To get it from inside a servlet, do
something like this:

ServletContext sCtxt = getServletConfig().getServletContext();

A great place to start learning about it is the J2EE Javadocs:



View raw message