Two words - Run-Time Expressions

Basically what you wind up having to do to get additional values into your
href='...' is to include a run-time expression that inserts the values for
you:

href='...<%= expr %>'

I recently had the same problem.  I _really_ wanted to use bean:write to
handle it but you just can't do it that way.

HTH,

Eddie


----- Original Message -----
From: "Shane Bouslough" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 03, 2002 3:14 PM
Subject: Embed <bean:write> inside <html:link>?


> Hi Struts Users,
>
> I can successfully iterate over a list, and use <bean:write>
> to output the values like this:
>
>     <logic:iterate id="foo" name="fooList">
>         Foo=<bean:write name="foo"/><br>
>     </logic:iterate>
>
> Let's say this outputs:
>
>         Foo=XXX
>         Foo=YYY
>         Foo=ZZZ
>
> I would like to also wrap the <bean:write> tag inside a
> <html:link> tag, but here's the rub: I'd like the page URL
> to include parameters that are the same text as the output
> of the <bean:write> tags so it renders HTML something like:
>
> Foo=<a href="/process.do?foo=XXX">XXX</a><br>
>
> How can I embed the output of <bean:write> to be part of
> the value passed to the page="" parameter of <html:link>?
>
> -Shane
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to