has anyone tried the nightly 3-18 xml tags in jstl? I'm experiencing a problem accessing request parameters and http headers. Here is the test page I used.
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/ea/xml" %> <br>$header:host = <x:out select="$header:host"/><br> <br>S param = <x:out select="$param:S"/><br> <% java.util.Enumeration enum = request.getHeaderNames(); while ( enum.hasMoreElements() ) { out.println(enum.nextElement()); out.println("<br>"); } out.println(request.getHeader("user-agent")); %> According to the JSTL spec, it states in 11.1.2: expression | mapping -------------------------------------- $param:foo | request.getParameter("foo") $header:foo| request.getHeader("foo") I took a quick look at tag.common.xml package and noticed all of the support tags use XPathUtil to access the context. Within XPathUtil is a inner class JstlVariableContext, which contains the call hsr.getHeader(localName) in JstlVariableContext.getVariableValue(). when I tried to debug getVariableValue method, it appears it never gets to hsr.getHeader(localname). In fact, valueOf(node,string) never instantiates JstlVariableContext, instead getLocalContext(node) is the only method that instantiates that class. Should valueOf(node,string) check the result of xp.valueOf(getLocalContext(n)) and call getLocalContext? I'm don't completely understand XPathUtil. Any tips are greatly appreciated. peter lin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>