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

eriksson.viktor do-not-reply at jboss.com
Thu Mar 12 19:21:13 EDT 2009


I have this web-application which is distributed to different end users. The application consists of servlet, classfiles and xsl files.
The xsl-files are end-user specific. As it looks now I have to package my application for each end user and that is a bit of a pain in the bum.

What I would like to do is to divide the application in two parts. The servlet/classes part and an xsl-part. So when bugfixes and such has been made and a new version is about to be sent out, I only need to sent out the servlet/classes-part.

My problem is that I don't know how to use the xsl-files from the servlet/classes application which are located in the other "application".
I think this is the way to do it when the files are in the current application:
getServletContext().getResourceAsStream("/WEB-INF/myresource");
But how do I read files from another archive/application ?

Another question I have is how should I package the xsl-files, jar file ? war-file ? other ?

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

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



More information about the jboss-user mailing list