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
select="$header:user-agent"/> to do browser detection. It would be nice
if JSTL EL also supports headers like parameters.

<c:out value="${header.user-agent}"/>

when I use the example above, I get "0" as the output. Is that a bug
maybe or not supported as specified. I'm using nightly 3-18.

thanks.


peter

peter lin wrote:
> 
> I read through the JSTL spec and grepped "org.apache....lang.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]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to