On 9/28/05, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote:
>  I have a hidden html varibale called operation.
>  <html text="hidden" name="operation" />

This defines a field in an HTML form, server knows nothing about it.

>   Now I want to conditionally display some buttons based on the value of
> this hidden field. I am trying something like this...
>  <logic:equal name="${operation}" value="update">
>  # display update related buttons
> </logic>

This is evaluated on server before HTML page generated, browser knows
nothing about it.

> This doesnt seem to work.

JSTL hides the error, it does not blow up when it cannot find an object.

> What am I doing wrong? I know that if
> 'operation' was a variable is request/session then it would work fine. But
> what should I do if operation is a html form element (hidden). I do not want
> to write scriptlets.

If you want to update HTML page without submitting it to the server,
then use some Javascript. If you submit form each time an operation is
changed, add an "operation" field to your form bean and use
<logic:equal name="${myFormBean.operation}" value="update">
when you re-render the HTML page.

Michael.

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

Reply via email to