[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&amp;hid=${row.histId}&amp;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

Reply via email to