HTML to PDF / DOCX / RTF Java converter library Forums PD4ML Forums Technical questions / Troubleshooting External resources not read PD4ML v4 tag library

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38454

    I have the following structure:

    /WEB-INF/views/templates/report_template.jsp
    /styles/report_style.css
    /images/report_img01.png
    /images/report_img02.png
    /images/report_img03.png

    Neither relative file paths (../../../styles/report_style.css) nor absolute application paths
    (<link href=”<c:url value=’/styles/report_style.css’/>” type=”text/css”>) work.

    The only way to get styles is to embed the styles in the JSP page. I suspect base-64 encoding of the images will be required as well.

    Using <c:url value=”/absolute_path”/> worked in PD4ML v3.

    Is there any work-aronud?

    #38456

    Fixed.

    We use <display-name>apName version</display-name> in our web.xml (generated by Maven and a resource filter). Apparently PD4ML v4 has changed context resolution to use ServletContext.getServletContextName(). Since there is no apName%20version running (only apName), this breaks getting external resources.

    This will make management a bit more difficult, but not impossible.

    I haven’t checked the release notes anywhere, but was this mentioned somewhere?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.