help

hello

I am sorry i still have a problem.

when i tried your mehtod 2 as follows it works

InputStream in = application.getResourceAsStream("/xml/first_top.xml");

Document doc = docBuilder.parse(in);

But the strange thing is that i just did n't define 'application' as a servletcontext object and when i added the line

ServletContext application = getServletConfig().getServletContext();

it raises an jasperexception

Why is this happen ? is it because application is an implicit object ?

[542 byte] By [abrahamchempanala] at [2007-10-2 12:58:14]
# 1
Yes. You are right, application is a implicit object.
nknemaa at 2007-7-13 10:16:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Try and keep all the related questions to one post: http://forum.java.sun.com/thread.jspa?threadID=710660&tstart=0
evnafetsa at 2007-7-13 10:16:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...