Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a problem with display tag

 
Mohamad Ahmad
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to add a dynamic variable in the display tag requestURI attribute
this is a snippet of my code
requestURI='/subjects.do?op=subjects&<%=id%>'
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
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try using EL ${id} instead of <%=id%>
 
reena rathod
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
</display:column>

Hope this should work. revert if you have any problem while implementing the same.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic