Asta Slade wrote:
> I am however still having problems getting the parameters to work.
>
> <display:column class="list" width="5%" >
> <a target="_blank" href="peopleSurvey.do?action=edit" paramID="<c:out
value="${ids.id}"/>" paramProperty="<c:out value="${ids.nameId}"/>">
> <c:out value="${ids.nameId}"/>
> </a>
> </display:column>
The problem is that you're setting the paramID and paramProperty attribute
son the <a> tag, where they're completely meaningless. They're just
ignored. If you use some sort of validating HTML editor or a validator
browser plug-in (e.g. HTML Validator for Firefox; Google it), it'll point
out that those are invalid attributes. Those attributes work with the
<display:column> tag, but since that tag doesn't have a target attribute
(which would be a kinda nice addition, except that I never use the href or
param* attrs, so it would be lost of me :^), it won't do what you want, as
you know.
So this really comes down to the same problem that's been discussed on
this list a few times in the last couple of weeks, which is just putting
the link directly in-line with the parameters directly in the href. So
you're not really using the <display:column> tag for displaying the data
or the link. Your code above would just be like this:
<display:column class="list" width="5%" >
<a target="_blank" href="peopleSurvey.do?action=edit&<c:out
value="${ids.id}"/>=<c:out value="${ids.nameId}"/>">
<c:out value="${ids.nameId}"/>
</a>
</display:column>
See how that puts the property values as parameters right in the link? I
think you'll probably need to mess with this, since I doubt you actually
want the parameter names to be ${ids.id}, but maybe you do, I dunno. This
will get you dynamic values in your href and you should be able to run
with it from there.
--
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