aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a problem with display tag