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

  • passing xslt stylesheet parameters

    I'm trying to pass parameters to my stylesheet by subclassing AbstractXsltView overriding getParameters(HttpServletRequest request). One of the parameters is a path to a directory containing xml files that will be included in the transform. I'd like to obtain this value from a property on MyAbstractXsltView. Although i've defined /set the property in myapp-servlet.xml application context, and am seeing it get set properly during initialization, i am not able to retrieve the value from getParameters(HttpServletRequest request).


    Code:
    private String xformspath;
    . . .
    protected Map getParameters() {
          Map m = new HashMap();
          logger.info&#40;"xformspath&#58; " + getXformspath&#40;&#41;&#41;;    // <--returns null
          m.put&#40;"path", getXformspath&#40;&#41;&#41;;
          m.put&#40;"xform-id","xform.xml"&#41;;
          return m;
    &#125;
    Am I missing something? is these a better way to do this?

    thx!
Working...
X