JSTL EL support for header?

2002-03-20 Thread peter lin
I read through the JSTL spec and grepped org.apachelang.jstl to see if it has any calls to request.getHeader(string) and noticed JSTL EL does not support request header. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: JSTL EL support for header?

2002-03-20 Thread peter lin
The closest thing I can think of to access request header values is c:out value=${request.headers[host]}/, but [] are used to access maps. Request.getHeaders() returns an Emueration, so it fails like it's supposed to. Thanks to shawn's fix yesterday to JSTL XML tags, i can use x:out

Argh :)

2002-03-20 Thread John Baker
Argh, this is driving me nuts. Consider this: c:forEach var=item items=${request.allItems} c:if test=${session.selection != item} (team:itemPath item=${item} factory=%= factory % /) /div /c:if /c:forEach Now you see the

Re: JSTL EL support for header?

2002-03-20 Thread Shawn Bayern
On Wed, 20 Mar 2002, peter lin wrote: I read through the JSTL spec and grepped org.apachelang.jstl to see if it has any calls to request.getHeader(string) and noticed JSTL EL does not support request header. It'll be added. In general, things like headers might ideally be retrieved as

Re: xml taglib and standard-examples.war generating error

2002-03-20 Thread RAYMOND Romain
exact error is InsertTag:doEndTag caught: javax.servlet.ServletException: javax/xml/transform/TransformerConfigurationException hello, I am trying to use JSTL xml taglib to apply xsl to xml and i get an exception. So I have tried to look at standard-examples.war but all the xml

Re: xml taglib and standard-examples.war generating error

2002-03-20 Thread Shawn Bayern
This actually doesn't look like a TransformerConfigurationException, but (because of the slashes) a ClassNotFoundError pointing to TransformerConfigurationException. You may need to update your container's XML-support libraries. -- Shawn Bayern Author, JSP Standard Tag Library

${x}

2002-03-20 Thread John Baker
When ${x} is passed to a tag, does the tag figure out what it means or does the variable get decoded and passed to the tag? Ie in my previous example, where I combined a c:forEach tag around my own, and tried to pass the variable from c:forEach to my own tag, is that actually legal? Or did:

Re: Argh :)

2002-03-20 Thread Shawn Bayern
In JSP 1.2, you can't automatically use the JSTL expression language in your own tags. You'll need to add support for that yourself by calling the JSTL expression evaluator. As has come up on this list before, we don't currently provide instructions for doing this because the final interface is

Re: ${x}

2002-03-20 Thread Shawn Bayern
On Wed, 20 Mar 2002, John Baker wrote: When ${x} is passed to a tag, does the tag figure out what it means or does the variable get decoded and passed to the tag? In JSP 1.2, the tag handler interprets it itself. The expectation is that under JSP 1.3, the container will do so. If so, I'm

Re: ${x}

2002-03-20 Thread Shawn Bayern
On Wed, 20 Mar 2002, Suryanarayana Murthy wrote: Could any one please tell me how can I use JSTL in my projects. I read that JSTL is still in development phase. If I would like to use JSTL for production development, can I do that? and also how to test JSTL tag libraries? Plesae tell me the

Re: xml taglib x:transform ... (import -- IO error)

2002-03-20 Thread RAYMOND Romain
I use xml taglib x:transform ... which really great to manipulate xslt. But I have a path problem : Transform taglib is correctly applies, althought inside my xslt I need to import others xslt ... (which are in the same folder so imported like this import=bob.xslt ...) Tomcat returns an IO error