Doug Pham wrote:

Hi All,
Has any come up with an easy way of implement
image links in a column where user can use to
manipulate the current data row data? Links for
(Edit, View, History, Drill Down, Email, etc.).



Doug,

I just do something like this:

<display:table id="row" name="whatever">
<display:column title="title"><html:link action="/whatever.do?gid=${row.id}"><html:img src="blah"/></html:link></display:column>
</display:table>


This is using Display Tag, Struts, and EL in Tomcat 5 or greater (JSP 2.4 containers should all support EL). A 2.3 non-Struts solution would look something like:

<display:table id="row" name="whatever">
<display:column title="title"><a href="/Servlet?gid=<%=row.getId()%>"><img src="blah"></a></display:column>
</display:table>


Your servlet or action or whatever would use whatever parameters you put on the URI.

--
Rick Herrick
[EMAIL PROTECTED]

I haven't got time for inner peace.

Get out of control, but appear under control. It's not bad to alarm other 
people, though--it's good for them.--Hunter S. Thompson




------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to