[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: pass HttpServletRequest from xslt to java function

Subject: Re: pass HttpServletRequest from xslt to java function
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Fri, 19 Apr 2002 01:11:38 +0200
xsl pass in variable java
Ming wrote:
In my stylesheet, I need to call a java function,
xmljsp:getXsltName(HttpServletRequest req). So, the method getXsltName needs the
variable HttpServletRequest. Do you know any way that I can pass the request from
my stylesheet to my java function?

There is no standard way to pass data which is not of an XPath data type through an XSLT processor to extension functions. The easiest way to get around this is to obtain the XSLT name outside the processor invocation and pass it as parameter to the style sheet. An alternative approach is to store the request object in some global variable (static class variable) and write a wrapper around your function which is called from your style sheet and gets the request object from the global.


J.Pietschmann




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.