Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3355345
By: ap13
This is what I have:
<display:table name="sessionScope.results" export="true"
defaultorder="descending"
pagesize="20">
<display:column property="prop1" title="ID" sortable="true"
headerClass="sortable"/>
<display:column property="prop2" title="Description" sortable="true"
headerClass="sortable"/>
</display:table>
In my JSP, the user can set paging to true or false which assigns a pagesize
variable (in my action class - struts framework) to 20 or 0 respectively. I
have successfully implemented this part and also have the pagesize available
in the session scope. So I do this:
In JSP:
<%
setdisplaypref = (String) session.getAttribute("setDisplayPref");
request.setAttribute("pagesize", setdisplaypref);
out.println("Display number: " + setdisplaypref);
%>
When I load the JSP, the setdisplaypref variable contains the correct number
(I verify this using the out.println as shown above). I just need to use this
variable (setdisplaypref) with the displaytag above. I have tried these:
<display:table name="sessionScope.results" export="true"
defaultorder="descending"
pagesize="<%setdisplaypref%>">
<display:table name="sessionScope.results" export="true"
defaultorder="descending"
pagesize="<%=setdisplaypref%>">
<display:table name="sessionScope.results" export="true"
defaultorder="descending"
pagesize="<%request.getAttribute("pagesize")%>">
Neither of these work - any suggestions?
______________________________________________________________________
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
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user