Meaningless Drivel is fun!
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
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: 5
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:
subject: a problem with display tag
jQuery in Action, 3rd edition