| Author |
a problem with display tag
|
Mohamad Ahmad
Greenhorn
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
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
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
Greenhorn
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>
</display:column>
Hope this should work. revert if you have any problem while implementing the same.
|
Reena
|
 |
 |
|
|
subject: a problem with display tag
|
|
|