On 11/10/05, Thomas Hamacher <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I´m using the display:* together with Struts 1.2.7 and this works quite good
> so far. But I´m experiencing the following problem now:
>
> I´m using a wrapper/decorator to create an image together with a link. But in
> my wrapper-method I can only create a link like this:
>
> return "<a href=\"/context/html/myPage.do\" ...... />
>
> Unfortunately the reference to "myPage" is not relative, so I have to use a
> path. As I don´t want to hardcode this path in my wrapper-class, but use it
> through my struts-config I´d like to use the relevant struts-tag. In this
> case this would be <html:rewrite action="/myPage" /> which returns me the
> correct path regarding the contextURL etc. Unfortunately this <html:rewrite>
> will not be executed if I simply return the struts-tags in my wrapper-class.
> Is there a solution to this problem?
>
> Same thing to this display:*-tag
> <display:column valign="top" property="name" .....
> href="/context/html/myPage.do" />
>
> The href="..." should be replaced by <html:rewrite>. But the struts-tags are
> not allowed within the <display:table>. Does this have anything todo with EL?
> Does anyone has an example for this?
>
> Thank you very much for your help
> Thomas
>

If you eliminate "property", you can give the column a body and have
full control over the HTML that's produced.

http://displaytag.sourceforge.net/tut_implicitobjects.html

Matt

>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to