On 6/28/05, Brad Rhoads <[EMAIL PROTECTED]> wrote:
> Nitesh wrote:
> 
> > You are probably looking for...
> > <logic:equal name="orderObj" property="statusCode"  value="<%=
> > OrderObj.getWhatever() %>">
> 
> Unfortunately, that gives:
> 
>  cannot find symbol
> symbol  : method getOrderStatus()
> location: class java.lang.Object
>              _jspx_th_logic_equal_0.setValue( orderObj.getOrderStatus() );
> 
> I can see a good value for orderObj.orderStatus in the debugger. I tried
> value="<%= orderObj.orderStatus%>" with the same results.
> 
>  It seems that there is a different scope between tags and scriplets?

The scope is the same, but the type is not specified. You need to do a
cast if you want to go with that solution.
E.g something like this:

<logic:equal name="orderObj" property="statusCode"  value="<%=
((TypeOfOrderObject) orderObj).getWhatever() %>">

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

Reply via email to