Chris,
Am Friday 15 October 2010 schrieb Christopher Schultz:
> > <%...@taglib prefix="myLib" uri="http://my-domain.org/customLib"%>
> >
> >
> >
> >
> > I would expect, that this outputs:
> >
> > VALID
> > foo.VALID.bar
> >
> >
> > The output in catalina.out is very interesting:
> >
> > VA
Am Saturday 16 October 2010 schrieb Maximilian Stocker:
> Okay. Then while I think it is a bug in tomcat (but it might be tomcat 5
> that has the bug because I still don't 100% understand what it *should*
> do) I am not sure what the problem is.
>
> Do you want the toString value or the name() val
Am Friday 15 October 2010 schrieb Maximilian Stocker:
> On tomcat 5.5. I get
>
> #1 = A is for Apple
> #2 = A is for Apple
>
> On tomcat 6 I get
>
> #1 = APPLE
> #2 = A is for Apple
>
> Which is obviously not the same, and surprised me, but it seems if I
> understand this thread that it is the
Hello,
Am Friday 15 October 2010 schrieb Maximilian Stocker:
> > > Or, just consistently use EL, since that actually works as you expect.
> >
> > +1 '
> And how do you escape XML characters to entity codes using pure EL?
>
> This seems a valid reason except that is this a problem for your enum
Pid,
Am Friday 15 October 2010 schrieb Pid:
> >> No, because that would call a method getName() which doesn't exist - the
> >> method is named name().
> >
> >
>
> I don't think that'll work in 6.0.
That's right.
> > Or, just consistently use EL, since that actually works as you expect.
>
> +
Hello,
now I tried with jstl-api-1.2.jar and jstl-impl-1.2.jar downloaded from
https://jstl.dev.java.net/download.html - same result.
Am Friday 15 October 2010 schrieb Christopher Schultz:
> >> Uh... why override the toString method like that?
> >
> > Well, as written in java.lang.Enum:
> >
>
Chris,
On Friday 15 October 2010 16:11:29 Christopher Schultz wrote:
> > not. Sorry for the confusion. So this is a simplified example for my enum:
> You're right: that was stupid of me. I had forgotten your toString method.
>
> Uh... why override the toString method like that?
Well, as written
Hi all,
Am Thursday 14 October 2010 schrieb Christopher Schultz:
> So I'm surprised that Oliver is getting that weird output.
I wrote in my initial mail to this list "I have an enum that has an overridden
toString() method". I thought it was clear what that means, obviously it was
not. Sorry fo
Hi Pid,
Am Thursday 14 October 2010 schrieb Pid:
> Which JSTL implementation are you using and which Java version was it
> compiled for/on?
http://repo2.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar
Using Sun/Oracle Java 6u21
Bye
Oliver
Hi Chris,
On Wednesday 13 October 2010 21:21:33 Christopher Schultz wrote:
> What do your taglib declarations look like? I've only used the JSTL a
> little bit, and I found that when you have the wrong taglib URL, things
> don't work properly.
This is how I use JSTL core:
<%...@taglib prefix="c"
Hallo all,
I'm a bit confused about how differed Java 5 enums are handled in JSPs. I have
an enum that has an overridden toString() method.
My JSP looks like this:
Output per EL: ${myEnumValue}
Output per JSTL:
The output is:
Output per EL: VALID
Output per JSTL: valid result, code 0
The
11 matches
Mail list logo