The moose likes JSP and the fly likes a problem with display tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "a problem with display tag" Watch "a problem with display tag" New topic

a problem with display tag

Mohamad Ahmad

Joined: Mar 26, 2006
Posts: 4
i want to add a dynamic variable in the display tag requestURI attribute
this is a snippet of my code
this is not working , i want id to be dynamic i get it from the DB or from the request
Omar Al Kababji
Ranch Hand

Joined: Jan 13, 2009
Posts: 357
try using EL ${id} instead of <%=id%>

Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog
reena rathod

Joined: Jun 18, 2009
Posts: 4
you can use a local variable like -
<c:url value="test/client(link)${requestScope.variable}" var="vlaUrl" />

c:url is jstl tag.

you can use it as follows
<display:column title="Try" sortable="true" headerClass="columnheader" sortProperty="try">
<a href="${vlaUrl}">Click</a>

Hope this should work. revert if you have any problem while implementing the same.

I agree. Here's the link: http://aspose.com/file-tools
subject: a problem with display tag
Similar Threads
Conditional display of DisplayTable of DisplayTag
Problem in using dynamic page size using partial list in Display tag
problem in displaying an array conditionally using display tag
Struts 2 - Display tag Serial Number Problem
Struts2 Display tag naming convention