On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote:
> On Mon, Jan 23, 2006 at 03:00:27PM -0500, Rahul Akolkar wrote:
> > On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote:
> > > On Mon, Jan 23, 2006 at 12:36:02PM -0700, Wendy Smoak wrote:
<snip/>
> > > >
> > > > Use the plain HTML tags and make sure you've configured your webapp
> > > > for Servlet 2.4 so that the container will evaluate the expressions
> > > > prior to passing them into the tags.
> > >
> > > I had no idea this was even possible.  Can you point me to a reference
> > > on configuring tomcat 5.5.x do that?
> >
> > Doesn't take much:
> >
> > http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions
>
> Ok, I am sorry for the confusion.  I had assumed that because I was
> running tomcat5.5 and tag files were working, I was in jsp 2.0 land,
> but I had no version attribute for the web-app declaratipon in
> web.xml, and the DOCTYPE was pointing to 2.3.  I tried changing it to
> what is suggested by the FAQ, but that results in all of my jstl tags
> failing to compile.  I just read the Jstl-1.1 appendix on compatibilty
> and discovered that jstl-1.1 defaults to jstl-1.0 mode when running in
> with a web.xml set to 2.3, so that makes sense.
>
> I can't possibly update all my uses of jstl at this point in order to
> run with jstl-1.1, so it seems I'm running under 2.3 for the time
> being.
>
<snap/>

You might also want to look at the 1.0 --> 1.1 migration roadmap laid
out in the spec. In some cases, it isn't too much work.


> Now, given that I'm running under jsp 1.2, not 2.0, and thus using the
> struts-el tags, my original question still stands.  I won't re-quote
> it, for space concerns.  Basically, a EL expression is passed from a
> page into a tag file via an attribute, and then passed to struts-el as
> a property, but I get one-two-few EL evaluations, and thus end up with
> a property name that has el expressions in it but is treated as a bean
> property literally.
>
<snip/>

1.2 didn't have tag files, so all bets are off. Some servlet
containers might blow up with an audible bang ;-)


>                        Thanks,
>                        -Clint
>
> P.S.  Magic behaviors are dangerous.  The fact that the text "2.4" versus
> the text "2.3" in my web.xml turns off container jsp-el parsing _and_
> toggles jstl 1.0 verses 1.1 is a little much.  My $.02.
>
<snap/>

Its not so much that you changed one character in your web.xml, but
what the semantics of the version attribute are in the web application
descriptor. Non-trivial.

-Rahul

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

Reply via email to