Hi Ed!, Hi Rick Thanks for your help, I GOT IT !!! IT WORKS !!!!
Here is the solution: *** Code web.xml *** <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> -> with this dtd you don't have to put the follwing into tomcats 5.5.12 web.xml file: <taglib> <taglib-uri>http://displaytag.sourceforge.net/</taglib-uri> <taglib-location>/WEB-INF/displaytag-11.tld</taglib-location> </taglib> *** Code displaytag table *** <% ArrayList cvePOSTHistList = null; DaoCVE dao = new DaoCVE(); String cve_id = CVEPOSTModify.getCVEId(); cvePOSTHistList = dao.getCVEPostHistList(cve_id); request.setAttribute("CVEPOSTHistList", cvePOSTHistList); %> <display:table name="CVEPOSTHistList" id="row" export="true" pagesize="10" requestURI=""> <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> Maybe anybody else will help this code snipplet ... Have a nice evening! Regards Jürg -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Rick Herrick Gesendet: Mittwoch, 12. April 2006 18:25 An: [email protected] Betreff: Re: AW: AW: [displaytag-user] Sending more than one paramter with a hyperlink [EMAIL PROTECTED] wrote: > Thanks for your mail and your tip! I have made this code with your code > snipplet: > > <display:column title="CVE-Nr." > width="12%" > > <a > href="FrontControllerCVE?cmdModifyPostCVEHist=show&hid=${row.histId}&id=${row.CVEId}">${row.CVEId}</a> > </display:column> Ah, if this is what you wanted to do, then I misunderstood you! This gives you a link in a particular column for each row, while what I gave you would give you sorting and paging links that have your attribute values. Ed mentioned the paramId and paramValue attributes (or whatever they are). They wouldn't work for you, since you want to send two parameters and you can only specify a single parameter and single value for that parameter with those attributes. This way that Ed described is what you want for a link for each row. > 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? This is a matter of the JSP version you're using. If you look at the first line of your web.xml file, it'll say whether you're using 2.3 or 2.4. If you're using 2.4, then this in-line EL will work. If not, you'll need to use the JSTL core tag library. Then your code would look something like this: <a href="FrontControllerCVE?cmdModifyPostCVEHist=show&hid=<c:out value="${row.histId}"/>&id=<c:out value="${row.CVEId}"/>"> <c:out value="${row.CVEId}"/> </a> Basically all straight evals of EL need to be inside a <c:out> tag if you're using 2.3, but don't require that if you're usnig 2.4. If you're using a 2.4-compatible app server (TC 5.0 or 5.5, JBoss 4, WL9 [maybe 8, I dunno]), then you just need to change your web.xml to a 2.4-compliant DTD and you'll have the 2.4 features (although this may cause other problems, so convert with caution). -- 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 ------------------------------------------------------- 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

