fea jabi wrote:
> The above was working as I supposed it's going to same JSP i.e first
one.
>
> I tried the below. I link itself is not comming.
>
>        <a href="${rows.navigate}.do">
>              <display:column property="type" titleKey="lbl.type" />
>         </a>
>
> What is the right way to do this?
>
> Thanks.

You're close, but not quite there.  The problem is that you're trying to
put a link OUTSIDE of a table cell.  If it is being generated, it won't be
displayed with proper HTML rendering, but I'd expect that it's not even
being generated.  Not sure though, check the egnerated HTML.

But this should look something like this:

<display:table name="${data}" id="rows" requestURI="PrepareEntry.do">
  <display:column titleKey="lbl.type">
    <a href="${rows.navigate}.do">${rows.type}</a>
  </display:column>
</display:table>

I'd question whether you really want to do something like this overall,
since this basically implies that you already know what the values of
${rows.navigate} will be, since you've already mapped those values to
Struts actions (in other words, navValue1.do has to exist or the whole
exercise is pointless).  Constructs such as what I've illustrated above
are usually used not to construct the actual ACTION name, but instead as a
parameter to a particular action, more like:

  <display:column titleKey="lbl.type">
    <a href="action.do?type=${rows.navigate}">${rows.type}</a>
  </display:column>

But regardless, the code I gave you should do what you're trying to do. 
All I'm saying is just consider if what you're trying to do is what you
really WANT to do :^)

-- 
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