Announcement Announcement Module
Collapse
No announcement yet.
ClasspathResource Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    try
    classpath:/com/acom/aproduct/incidents/fop/incident2FO.xsl

    HTH

    Comment

    Working...
    X