Hello,
I've got a little Problem with the 'ShowSource.jsp' which
is called using the 'screwdriver' icon from the 'standard-examples'.
The page doesn't show any source code, what I get (on every page) is the
following output (e.g.):
--- snip ---
Source code for: /elsupport/Out.jsp
${reader}
---
This definitely looks like a bug in 1.0.6. The problem is with the handler for
the ex:escapeHtml tag:
org.apache.taglibs.standard.examples.taglib.EscapeHtmlTag. In 1.0.5, it appears
to properly evaluate EL expressions. However, for 1.0.6, it looks like a 1.1
version leaked in so that EL
Right, that's just not gonna happen with JSTL's EL. Well, I suppose you could
keep a shadow map that mapped values to keys, but that seems like a
management headache as well as a bit of session bloat. With JSP 2.0, you could
create an EL function to do it, but you're out of luck with JSP 1.2/JSTL
Can't you change the whole thing to work always with the key, and only do
the key-value mapping? Or maybe you can have a bean with both mappings:
UsersBean
+ idByUserName: Map
+ userNameById: Map
if you really need it (it is, in case both key and value are valid codes
and not only final
Hi Kris,
many thanks for this information. I'll have a look at it and submit a bug
report.
Kind regards,
Joachim Kessel
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: 12 October 2004 15:15
To: Tag Libraries Users List
Subject: Re: standard-examples
How about adding some JavaScript to update the value of a hidden input to
contain the key? That way you get both the key and the value submitted as
request params.
Quoting Helios Alonso [EMAIL PROTECTED]:
Can't you change the whole thing to work always with the key, and only do
the key-value