Results 1 to 2 of 2

Thread: ClasspathResource

  1. #1

    Default ClasspathResource

    Hi

    I am trying to use the classpathresource to load an XSL file... but I cannot get it to work...

    This works fine:

    File("./../webapps/tracker/WEB-INF/classes/com/acom/aproduct/incidents/fop", "incident2FO.xsl");

    I have tried:

    ClassPathResource resource = new ClassPathResource("incident2FO.xsl");
    File xslFile = resource.getFile();

    also:

    "classpath*:/incident2FO.xsl"
    "classpath:/com/acom/aproduct/incidents/incident2FO.xsl"
    "classpath:com/acom/aproduct/incidents/incident2FO.xsl"

    but none of these work..

    Can anyone help?

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    try
    classpath:/com/acom/aproduct/incidents/fop/incident2FO.xsl

    HTH
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Similar Threads

  1. Loading context from custom classloader
    By mgarber in forum Container
    Replies: 6
    Last Post: Oct 13th, 2005, 03:17 AM
  2. ClassPathResource vs FileSystemResource for configurations
    By ct7 in forum SpringSource Tool Suite
    Replies: 2
    Last Post: May 27th, 2005, 03:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •