How do i get form value in a local variable??

Discussions

Web tier: servlets, JSP, Web frameworks: How do i get form value in a local variable??

  1. How do i get form value in a local variable?? (1 messages)

    Hi All,
     
    Can anyone tell me how to take a form variables name in a JSP page..
    Suppose i have a date variable in the Form class, and if i wanna print it in the JSP page with the
     
    <nested:write property="date"/>
    OR
    <nested:text property="date"/>
     
    Suppose i want 2 do condtional display based on the value of the date, i need that (date) variables value in a variable in the JSP page, can anybody tell me how do i get that....

    Is it possible without creating ActionForm's instance in the JSP page????
     
    Thankx in Advacnce..
    ~Shridhar..

    Threaded Messages (1)

  2. USE <LOGIC:EQUAL> Tag[ Go to top ]

    You can use logic:equal tag to check for the condition.
    <logic:equal name="FORMBEAN NAME" property="xyz" value="abc">

    <bean:write name="FORMBEAN NAME" property="xyz" />

    </logic:equal>