[EMAIL PROTECTED] wrote:
>
> Hello
>
> I have to problem, that I would like to send two parameters (properties)
> with my request (histId and Nr). The table code in my jsp looks like this:
>
> <%
> ArrayList HistList = null;
> Dao dao = new Dao();
> String id = MyModify.getId();
> HistList = dao.HistList(id);
> request.setAttribute("myBeanName", HistList);
> %>
>
> <display:table name="myBeanName"
> export="true"
> pagesize="10"
> requestURI="">
I'm assuming that by "my request", you mean for the sorting and paging
links. If so, then you want to use the requestURI attribute in the
<display:table> tag. Basically, specify the requestURI along with the
parameters you want to pass. You can compose this as a string ahead of
time then just evaluate that with EL or scriptlet, or do it all in-line,
or whatever. But just create "myRequest.do?histId=XXX&Nr=YYY" and set
that value for requestURI. displaytag will take care of adding the paging
and sorting parameters to the URI appropriately.
There are a few e-mails from last week on this e-mail list that you can
find in the archive that have a full example of this (sourceforge.net is
down right now though, so I can't look it up). You should always check
the archives for this sort of problem first, since most of the time these
questions have been asked and answered previously.
--
Rick Herrick
[EMAIL PROTECTED]
I haven't got time for inner peace.
"No reasonable definition of reality could be expected to permit
this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user