3 Replies Latest reply on Mar 16, 2009 8:46 PM by Viktor Eriksson

    Reading files from another archive

    Viktor Eriksson Newbie

      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 ?