tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Euclides da Silva Junior - DATAPREVRJ <>
Subject RES: Display Tag, Tiles and Paging
Date Wed, 11 Jun 2003 21:02:55 GMT
i have the same problem! I try to recover some bean properties from a
collection object but, it seems that TomCat doesnt accept getproperty and
setpropertys ...

-----Mensagem original-----
De: Raible, Matt []
Enviada em: quarta-feira, 11 de junho de 2003 17:57
Para: 'Tomcat Users List'
Assunto: RE: Display Tag, Tiles and Paging

Here's what I do as a workaround for this.  I'm sure you could easily
enhance this to convert all your request parameters into a URL with
name/value pairs.

<%@ include file="/common/taglibs.jsp"%>
<%@ page import="org.apache.struts.util.MessageResources,

MessageResources resources = 
    (MessageResources) request.getAttribute(Globals.MESSAGES_KEY); 
String searchTerm = "";
String action = request.getParameter("action");
if ("search".equalsIgnoreCase(action)) {
    if (request.getParameter("searchBy") != null) {
        searchTerm = "&amp;searchBy="+request.getParameter("searchBy");

<%-- For linking to edit screen --%>
<bean:struts id="thisURL" forward="searchChangeRequests"/>
<bean:struts id="editURL" forward="editChangeRequest"/>

<display:table name="userCrList" cellpadding="0" cellspacing="0"
    scope="request" pagesize="20" styleClass="list">



-----Original Message-----
From: Mark F []
Sent: Wednesday, June 11, 2003 1:25 PM
To: Tomcat Users List
Subject: Display Tag, Tiles and Paging

I have an ArrayList that is a collection of JavaBeans containing three
attributes id, name, ssn.  It is working well with the display column like

    <display:table name="results" width="45%" pagesize="10" cellpadding="3"
cellspacing="0" border="0"  requestURI="/" summary="Table
summary - Listing of medical records contained in docbase for the given
       <display:column property="name" title="Name" sort="true"  />
       <display:column property="ssn" title="SSN" sort="true"
autolink="true"  paramId="rid" paramProperty="id" href="/GetObjectByRid" />
     <display:setProperty name="sort.behavior" value="list" />
     <display:setProperty name="paging.banner.include_first_last"
value="true" />

The paging and sorting do not work.  It seems that I need to give it a
requestURI parameter, but this causes the app to loose the request scoped
values (the name that was searched on).  It appends on some new URI
parameters (page, order and sort).  I found some examples on the developers
site that allowed me to get this far but nothing on what needs to be in
place before-hand to make this work.  Also tiles definitions do not work in
the requestURI parameter.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message