I vaguely remember something about the JSP processor not converting to a
String when you use an expression inside a tag like that. Someone els emay
have the details. Anyway this works:
bean:define id=col value='%= Integer.toString(6 / 4 + 1) %' /
Steve
-Original Message-
From: Erez
Well, for one thing, review your JSP. %= xxx % is a synonym for
out.println. It cannot render calculations at runtime. You have to have
a function to do that, like %= calculate( 6/4+1 ) %.
Mark
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: May 27, 2003 6:44
]
Subject: RE: what is wrong here?
Well, for one thing, review your JSP. %= xxx % is a synonym for
out.println. It cannot render calculations at runtime. You
have to have
a function to do that, like %= calculate( 6/4+1 ) %.
Mark
'; [EMAIL PROTECTED]
Subject: RE: what is wrong here?
Well, for one thing, review your JSP. %= xxx % is a synonym for
out.println. It cannot render calculations at runtime. You have to
have a function to do that, like %= calculate( 6/4+1 ) %.
Mark
4 matches
Mail list logo