On Thu, 14 Jun 2001, Dean Wampler wrote:
> <h1>Title is
> <bean:message>
> <bean:key>
> <template:get name="pageName"/>.title
> </bean:key>
> </bean:message>
> </h1>
>
There's a pretty significant problem with this -- the JSP page compiler
will consider ".title" to be template text, and will just copy it to the
output page.
That's not to say we couldn't make the <bean:message> tag smarter about
where it gets its key from, but we have to obey the rules of the language
we're writing for. The typical way to deal with dynamic stuff at runtime
is to use a runtime expression.
> In other words, support nested tags to specify the "key" and perhaps other
> attributes, so that specifying the values of the attributes is more
> flexible.
>
> Many of the "ant" tasks support capabilities like this and it greatly
> enhances the power and flexibility of build files.
>
> I have looked at the code for MessageTag (and others). This extension is
> straightforward to implement and it can be done in a backwards compatible
> way (that is, the old attribute syntax will still work fine).
>
> I'm willing to implement the changes, but before I do so, I wanted to check
> with the rest of you to see if there are any good reasons not to proceed.
>
You might want to have a look at the JSP Specification as well. Some of
the things you discuss are just plain not legal in JSP.
> Thanks,
> dean
>
> Dean Wampler, Ph.D.
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> http://www.powerhousetechnology.com/
>
> I want my tombstone to say:
>
> Unknown Application Error in Dean Wampler.exe.
> Application Terminated.
> [OK] [Cancel]
>
>
Craig