a little off topic but..

I have a variable (a string named "mode") in request scope and I want
to display something conditionally in the JSP. Right now, I have the
following, which doesnt work. The error is

2: Illegal scope attribute without var in "c:if" tag.

What am I doing wrong?

<c:if test="${mode}=='a'" scope="request">
   first thing
</c:if>
<c:if test="${mode}=='b'" scope="request">
   second thing
</c:if>
-- 
-Dave
[EMAIL PROTECTED]

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

Reply via email to