That's not true. 'System.out.println(6 / 4 + 1 );' outputs 2, as does <%= 6
/ 4 + 1 %>.
It just doesn't work when it's nested like that.

Steve


> -----Original Message-----
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> Sent: May 27, 2003 8:13 PM
> To: 'Struts Users Mailing List'; [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
>


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

Reply via email to