Re: Java in XSL
Posted by bsteuhl on Mar 23, 2011; 11:10pm
URL: https://discuss.orbeon.com/Java-in-XSL-tp3400438p3401077.html
I unpackaged the orbeon.jar file and located class file which when decompiled has getRemoteUser() method. Why doesn't this work in my xsl file?
xmlns:remoteUser="java:org.orbeon.oxf.externalcontext.ExternalContextToHttpServletRequestWrapper"
<xsl:variable name="remoteUser" select="remoteUser:getRemoteUser()" as="xs:string"/>
<xsl:value-of select="$remoteUser" />
I keep getting:
Error at line 33, column 86 of oxf:/config/theme-examples.xsl:
XPath syntax error at char 26 on line 33 in {remoteUser:getRemoteUser()}:
Cannot find a matching 0-argument function named {java:org.orbeon.oxf.externalcontext.ExternalContextToHttpServletRequestWrapper}getRemoteUser()
Thanks.