tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark F" <mfa...@knology.net>
Subject Re: Display Tag, Tiles and Paging
Date Wed, 11 Jun 2003 23:36:40 GMT
Thanks for the info but I got it fixed.  I just set the requestURI parameter
to a global forward which points to the tag definition name which contains
results.jsp.  That fixed it.  Maybe it will help you.  From my original post
the only part that changed was:

 requestURI="/SearchForm.do"

was changed to

 requestURI="/results.do"


-Mark


----- Original Message -----
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<Jose.Euclides@rj.previdenciasocial.gov.br>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>;
<mfaine@knology.net>
Sent: Wednesday, June 11, 2003 4:02 PM
Subject: RES: Display Tag, Tiles and Paging


> Hi,
> 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 [mailto:Matt_Raible@cable.comcast.com]
> 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,
>                  org.apache.struts.Globals"%>
>
> <%
> 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"
>
requestURI='<%=request.getContextPath()+thisURL.getPath()+searchTerm%>'
>     scope="request" pagesize="20" styleClass="list">
>
>
> HTH,
>
> Matt
>
> -----Original Message-----
> From: Mark F [mailto:mfaine@knology.net]
> 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
> this:
>
> <div>
>     <display:table name="results" width="45%" pagesize="10"
cellpadding="3"
> cellspacing="0" border="0"  requestURI="/SearchForm.do" summary="Table
> summary - Listing of medical records contained in docbase for the given
> name">
>        <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" />
>     </display:table>
> </div>
>
> 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.
>
> Thanks,
> -Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message