Gnan,

This looks more like DisplayTag mailing list question. Browse the stuff
in there.

Meantime why don't you try the following.

If you are sure and can debug that variable exportIndex is set to
correct value then try to get this variable's value like 
((TYPECAST APPROPRIATE TYPE HERE)
pageContext.getAttribute("exportIndex"))
So for e.g. code should look like

<display:table name="sessionScope.searchResults"
pagesize="5" defaultsort="1" defaultorder="descending"
export="<%= pageContext.getAttribute("exportIndex")%>" id="register">

Thanks
G

-----Original Message-----
From: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 22, 2004 12:46 PM
To: 'Struts Users Mailing List'
Subject: RE: <bean:define> tag


David,
I am using DisplayTag v1.0 -rc1. Thats the latest they have at
http://displaytag.sourceforge.net/download.html

I am using IBM WSAD v5.1.2 which supports for J2EE 1.3 specifications -
EJB
2.0, servlet 2.3, JSP 1.2. 

I tried ...export="${exportIndex}"..

but no luck..do I need to have JSP 2.0 container for that to work?

Any input is appreciated..

Thanks



-----Original Message-----
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 7:36 PM
To: Struts Users Mailing List
Subject: RE: <bean:define> tag


Gnan,

I see you are using displaytag with EL.  Are you using Displaytag v1.2
EL
tld?  Are you using a JSP 2.0 container?  If the container, where is
your
dollrsign for the line
.... export="{exportIndex}" ...

Shouldn't that portion of the line be:
.... export="${exportIndex}" ...

Regards,
David

-----Original Message-----
From: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 5:36 PM
To: '[EMAIL PROTECTED]'
Subject: FW: <bean:define> tag



Sorry for the repeat post. Can someone give me some input?

Hello,
In my application, I am trying to set a "exportIndex" variable to a
"true"
or "false" value based on if the member is admin level or not. And I
want to
use this "exportIndex" value to display or not display one of my
attributes
in table. I am using <display:table> from DisplayTag. I am using
<bean:define> to this but its not picking the value. Can some one give
me
some input on what is wrong here..

JSP code:

        <logic:equal name="member" property="accessLevel" value="1">
                        <bean:define id="exportIndex" value="true"/>
        </logic:equal>
        <logic:notEqual name="member" property="accessLevel" value="1">
                <bean:define id="exportIndex" value="false"/>
        </logic:notEqual>

        <html:form action="/deleteRegistration" >
                <td rowspan="2" colspan="2" valign="top" height="200">
                <TABLE border="1" cellspacing="0" cellpadding="0"
width="100%">
                <TBODY>
                <TR>
                <TD>
                <display:table name="sessionScope.searchResults"
pagesize="5" defaultsort="1" defaultorder="descending"
export="{exportIndex}"

id="register">
                        <logic:equal name="member"
property="accessLevel"
value="1">
                        <display:column property="lastName" title="Last
Name" sortable="true" headerClass="sortable"
href="/registration/viewRegistration.do" paramId="memberName"
paramProperty="memberName" />
                        </logic:equal>
                        <logic:notEqual name="member"
property="accessLevel"
value="1">
                        <display:column property="lastName" title="Last
Name" sortable="true" headerClass="sortable"

paramId="memberName" paramProperty="memberName" />
                        </logic:notEqual>

        </display:table>


The export attribute in the <display:table> tag does not pick up the
true/false value set in the bean:define tag. Not sure what is wrong
here.

Please help

TIA
Gnan

========================================================================
This email message is for the sole use of the intended recipient (s) and
may
contain confidential and privileged information. Any unauthorized
review,
use, disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and destroy all
copies
of the original message. To reply to our email administrator directly,
send
an email to [EMAIL PROTECTED]
Toys "R" Us, Inc.

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

========================================================================
This email message is for the sole use of the intended recipient (s) and
may
contain confidential and privileged information. Any unauthorized
review,
use, disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and destroy all
copies
of the original message. To reply to our email administrator directly,
send
an email to [EMAIL PROTECTED]
Toys "R" Us, Inc.

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

========================================================================

This email message is for the sole use of the intended recipient (s) and
may
contain confidential and privileged information. Any unauthorized
review,
use, disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and destroy all
copies
of the original message. To reply to our email administrator directly,
send
an email to [EMAIL PROTECTED] 
Toys "R" Us, Inc.

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