Hi Ed
Thanks for your mail and your tip! I have made this code with your code
snipplet:
<display:table name="CVEPOSTHistList"
id="row"
export="true"
pagesize="10">
<display:column property="histId"
title="HistId"
sortable="true"
width="8%" />
<display:column property="modifyDate"
title="Letzte Änderung"
sortable="true"
width="10%" />
<display:column title="CVE-Nr."
width="12%" >
<a
href="FrontControllerCVE?cmdModifyPostCVEHist=show&hid=${row.histId}&id=${row.CVEId}">${row.CVEId}</a>
</display:column>
<display:column property="category"
title="Kategorie"
width="15%" />
<display:column property="status"
title="Status"
sortable="true"
width="15%" />
<display:column property="hod"
title="HoD"
width="5%" />
<display:column property="actions"
title="Bemerkungen"
width="35%" />
<display:setProperty name="export.pdf"
value="true" />
</display:table>
And then, in the servlet where I dispatchedthe parameters I put the following
debugging statements:
String x = req.getParameter("id");
String y = req.getParameter("hid");
And the output is:
${row.CVEId}
${row.histId}
Almost it works but where are the real values?
Jürg
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Ed Webb
Gesendet: Mittwoch, 12. April 2006 17:57
An: [email protected]
Betreff: Re: AW: [displaytag-user] Sending more than one paramter with a
hyperlink
[EMAIL PROTECTED] wrote:
> Hello
>
> Thanks for the quick replay. I made a new try, but it won't work ;-) Here my
> new code:
[snip]
> <display:column property="CVEId"
> title="CVE-Nr."
>
> href="FrontControllerCVE?cmdModifyPostCVEHist=show"
> paramId="id"
> paramProperty="CVEId"
> width="12%" />
>
[snip]
I think I understand what you're trying to do. I've not used paramId or
paramProperty attributes so I'll show you how I would do it:
<display:table name="CVEPOSTHistList" id="row" export="true" pagesize="10">
<display:column title="CVE-Nr." width="12%">
<a
href="FrontControllerCVE?cmdModifyPostCVEHist=show&hid=${row.histId}&id=${row.CVEId}
">${row.CVEId}</a>
</display:column>
<display:table>
I've added the id="row" attribute to the display:table element so I have
access to the current row's object. Then I've created an anchor element
inside the display:column element that will show the CVE-Nr. I've used
the EL to insert the current row's histId and CVEId into the href
attribute and inner text of the anchor element. This should output a
hyperlink that will do what you want.
Ed!
-------------------------------------------------------
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
-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user