Thanks.
On Tue, 08 Mar 2005 13:33:46 +0100, Nicolas De Loof
<[EMAIL PROTECTED]> wrote:
>
> You can use the EL-enable version of display tag to do this (assuming
> Konstants.SESSION_USER_KEY = "users") :
>
> <display:table name="${user.rusers}" pagesize="5" class="simple" >
>
> Now, if you don't want to break constants usage, you may try to use
> jakarta unstandard taglib to bind the static field from your Konstants
> class to a pageContext variable :
>
> <us:bind var="userkey" type="com.mycompany.Konstants"
> field="SESSION_USER_KEY"/>
> (http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#bind)
>
> .. and use it in EL :
> <c:set var="user" value="${sessionScope[userKey]}"/>
> <display:table name="${user.rusers}" pagesize="5" class="simple" >
>
> If you don't want to use EL, you can use struts bean:define :
>
> <bean:define id="rusers" bean="<%= Konstants.SESSION_USER_KEY %>"
> property="rusers"/>
> <display:table name="rusers" pagesize="5" class="simple" >
>
> Nico.
>
> Richard Reyes a �crit :
>
> >Hello All,
> >
> >I have this code...
> >
> >
> ><%
> > User user = ( User ) session.getAttribute( Konstants.SESSION_USER_KEY ) ;
> > ArrayList x = user.getRusers() ;
> > request.setAttribute( "x",x ) ;
> >%>
> > <display:table name="x" pagesize="5" class="simple" >
> > <display:column property="username" title="Username" />
> >
> >How do I use the Struts Bean Liblraries to remove the scriptlet.
> >
> >TIA.
> >Richard
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> This message contains information that may be privileged or confidential and
> is the property of the Capgemini Group. It is intended only for the person to
> whom it is addressed. If you are not the intended recipient, you are not
> authorized to read, print, retain, copy, disseminate, distribute, or use
> this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
> ---------------------------------------------------------------------
> 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]