struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Raible <matt_rai...@yahoo.com>
Subject Re: struts tags migration help
Date Mon, 29 Oct 2001 21:11:03 GMT
1.  Use the html:rewrite tag.

2.  Use the RowTag taglibrary, found at
http://husted.com/struts/resources.htm#taglibs


--- Toni Charlot <toni@fdplus.com> wrote:
> 
> 1: What's the best struts tags implementation for the following:
> <img src="images/icons/envelop.gif" title='click me'
>          onclick='window.open("<%=
> request.getContextPath()%>/do/address/select?key=<%= address.getKey()
> %>","addressWindow","dependent, scrollbars");'/>
> 
> 2: Is there a better way:
>     <% String myClass="table_data_browse";  %>
>     <logic:iterate id="employee" indexId="index"
>                        property="persons"
>                        type="org.aaa.Person" name="helperBean">
> 
>        <% //I'm doing this just to find out if the index is odd
>            pageContext.setAttribute("isOdd",
> Integer.toString(index.intValue()%2), PageContext.PAGE_SCOPE);%>
> 
>        <logic:equal name="isOdd" value="0">
>          <% myClass="table_data_browse"; %>
>        </logic:equal>
>        <logic:notEqual name="isOdd" value="0">
>          <% myClass="table_data_browse_alt"; %>
>        </logic:notEqual>
>    ....
>    </logic:iterate>
> 
> Thank you.
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message