struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict" <pbened...@apache.org>
Subject Re: How to generate an ANCHOR tag dynamically?
Date Wed, 08 Aug 2007 18:53:43 GMT
Use the Tiles tag that can expose the tiles attribute as a page attribute.
Maybe getAsString can do it. But once it is a page attribute, you can do:

<html:link anchor="${myvar}" />

Paul

On 8/8/07, Paul Uszak <paul@klickngo.com> wrote:
>
> Hi all.
>
> Is there any way to make a dynamic anchor tag in a struts link?  I'm also
> using tiles. The following does not work as the JSP interpreter can't...
>
> <html:link action="showsitehelp.do"   anchor="<tiles:getAsString
> name="helppointer" />" >
>
> I'm trying to have a link to a help page that's context sensitive, so
> where
> ever you are pressing help takes you to the appropriate point on the help
> page.
> Is there any other way of doing this please?
>
> Thanks in advance.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message