[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Reading files from another archive

eriksson.viktor do-not-reply at jboss.com
Mon Mar 16 20:46:49 EDT 2009


Think I found out how to do it.
I compiled my configuration stuff into a jar with 1 dummy sourcefile.

I then import this sourcefile in my real application and type:

DummyFile.class.getResourceAsStream("/xsl/hello.xsl").read(bytes);



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218460#4218460

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218460



More information about the jboss-user mailing list