OK. Assume you use nested, your form is called ansm.

<nested:form ......>

<table>
        <tr>
                <td><b><bean:message key="app.label.numberType"/>: </b></td>
                <td><netsed:hidden property="numberType" write="true"/></td>
        </tr>
        
        <nested:equal value="subformat" property="entryType">
                <tr>
                        <td><b><bean:message key="app.label.subType"/>:
</b></td>
                        <td><nested:hidden property="subType" write="true"/>
                        </td>
                </tr>
        </nested:equal>
        
        
</table>
</nested:form>

Correct me if I still didn't understand your question.

-----Original Message-----
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 30, 2003 11:14 AM
To: 'Struts Users Mailing List'
Subject: RE: Nesting logic tags

The issue isn't getting entryType into the form.  The issue is conditionally
displaying a couple rows in the table/form.  I already have the entryType in
a hidden input earlier in the form.
Input anybody?
I'd really appreciate it.

~ Keith

http://www.buffalo.edu/~kkamholz



-----Original Message-----
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 11:09 AM
To: 'Struts Users Mailing List'
Subject: RE: Nesting logic tags


If ansm is a member variable of your ActionForm, use

<html:hidden property="ansm.entryType">

-----Original Message-----
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 30, 2003 10:53 AM
To: '[EMAIL PROTECTED]'
Subject: Nesting logic tags

Hey,
I'm using a table to display a form, but there's one row that I want to
hide, depending on a previous user selection.
Right now, my code is:

<table>
        <tr>
                <td>
                        <b>
                                <bean:message key="app.label.numberType"/>: 
                        </b>
                </td>
                <td>
                        <html:hidden name="ansm" property="numberType"
write="true"/>
                </td>
        </tr>
        
        <logic:equal value="subformat" name="ansm" property="entryType">
                <tr>
                        <td>
                                <b>
                                        <bean:message
key="app.label.subType"/>: 
                                </b>
                        </td>
                        <td>
                                <html:hidden name="ansm" property="subType"
write="true"/>
                        </td>
                </tr>
        </logic:equal>
        
        <tr>
                <td>
                        <b>
                                <bean:message key="app.label.typeDesc"/>: 
                        </b>
                </td>
                <td>
                        <html:text name="ansm" property="typeDesc" size="50"
maxlength="50"/>
                </td>
        </tr>
        
        <logic:notEqual value="group" name="ansm" property="entryType">
                <tr>
                        <td>
                                <b>
                                        <bean:message
key="app.label.typeFormat"/>: 
                                </b>
                        </td>
                        <td>
                                <html:text name="ansm" property="typeFormat"
size="60" maxlength="60"/>
                        </td>
                </tr>
                <tr>
                        <td>
                                <b>
                                        <bean:message
key="app.label.tabulatedFormat"/>: 
                                </b>
                        </td>
                        <td>
                                <html:text name="ansm"
property="tabulatedFormat" size="60" maxlength="60"/>
                        </td>
                <tr>
                        <td>
                                <b>
                                        <bean:message
key="app.label.lastUsed"/>: 
                                </b>
                        </td>
                        <td>
                                <html:text name="ansm" property="lastUsed"
size="30" maxlength="30"/>
                        </td>
                </tr>
        </logic:notEqual>
        
</table>

Unfortunately, it doesn't like me nesting the logic tags in the table code.
I've never used the struts nested taglib, would this be an appropriate place
to use it?  If not, does anyone know of a workaround I could use?

Thanks in advance.


~ Keith

http://www.buffalo.edu/~kkamholz



---------------------------------------------------------------------
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