Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Producing links

Tom Schneider

2007-02-04

Replies:

I think the idea here is that you'd want to do something like:

<a action="preference_prepare" bundle_key="preferences>
<param name="param1" value="value1"/>
</a>

To me, this makes sense because there were many places where I used an
ww:url tag and a ww:a tag directly after it, so having one tag that
would handle the functionality of both would be useful.
Tom

Dave Newton wrote:
> --- Gon?alo Luiz <goncalo.luiz@(protected):
>  
>> <a href="<s:url action="preferences_prepare"/>">
>>  <s:text name="preferences" />
>> </a>
>>
>> Is there a more "elegant" way of producing links
>> that does not involve this "sub-tag" schema ?
>>  
>
> Like what? That's how the <a.../> tag works, it has an
> href and the text is the <a.../> body.
>
> If you want to automagicate it write a custom tag, but
> I'm not entirely sure it would be worth it.
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.