Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3585147 By: harish7447
HI All Im new to using displaytag. I have a struts application, in which im using the display tag to show the results of the SQL. I store my SQL results in an arraylist in the Action Class and store the arraylist in the session. the display tag code in the jsp is : <jsp:scriptlet> Object foo = session.getAttribute("userResults"); </jsp:scriptlet> <display:table name="sessionScope.userResults" pagesize="5" decorator="org.displaytag.sample.Wrapper"> <display:column property="recId" title="User ID" href="userAction.do" paramId="id" /> <display:column sortable="true" property="firstName" /> <display:column property="lastName" /> <display:column property="loginName" /> <display:column sortable="true" property="lastUpdated" /> </display:table> In this i need to add another display:column with title "Action", whose link should be as: http://server:8080/myApp/userAction.do?id="recId"&action="edit" That is I need to pass 2 parameters to the href. I have tried to c:out, but it is not working, just empty id. <display:column title="Action"> <a href="userAction.do?action=edit&id=<c:out value='${row.recId}'/>">Modify</a> </display:column> Alternatively, I also tried to use the decorator tag and tried to use: <display:column title="Action" property="link2" /> But the decorator is not working at all, and the display table is not shown at all: ----------------------------------- 7 items found, displaying 1 to 5.[First/Prev] 1, 2 [Next/<a href="/PMR/user-grid.jsp?level=040FC&code=BUH&group=13&submit=Submit&d-49653-p=2 &loginId=&id=&a ---------------------------------- So please tell me the best way to have 2 params to the href/link This is very urgent and hoping for a very very early reply Thanks and Regards Harish ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=249318 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user