Hi David

here is the code, but i dont know how to set up the properties for c:if

  <c:if> test="${action == 'add'}" >
       do something
  </c:if>

where action is one of the properties of my form. 

what is corrector the setup the test variable in my snippet code?

Thanks ahead

-Dan

----- Original Message ----- 
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 2:27 PM
Subject: Re: Conditional Displaying form properties - Seek Advice


> You can use the <c:if> JSTL tag to perform conditional logic.
> 
> David
> 
> 
> 
> >From: "Dan Tran" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Conditional Displaying form properties - Seek Advice
> >Date: Wed, 12 Mar 2003 14:25:43 -0800
> >
> >Hi I would like to display/disable a set of form's properties base on 
> >another properties in the form.
> >
> >some thing like this
> >
> ><html-el:form ....>
> >
> ><table>
> >     if ( theForm.aProperty)
> >     {
> >        <tr>
> >            <td>
> >                <html-el:text property="myprob" />
> >            /td>
> >        </tr>
> >     }
> ></table>
> ></html-el:form>
> >
> >
> >Advice is greatly appricated.
> >
> >-Dan
> 
> 
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*  
> http://join.msn.com/?page=features/virus
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to