struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: request for feedback on proposed parameter tag
Date Thu, 03 Jul 2003 20:06:00 GMT
The JSTL provides this exact functionality except it doesn't have the
ability to point to Struts actions.  If we were to add this feature, I'd
like to see it as a new tag subclassing the JSTL's <c:url> tag that just
provides the extra Struts features.

David


--- Christopher Bare <christopherbare@yahoo.com> wrote:
> Is there any interest in a ParameterTag that would
> allow parameters to be added to the URL generated by
> LinkTag? Something that would allow you to do create
> links like so:
> 
> <ul>
> <logic:iterate id="product" name="product-list">
> <li><html:link page="/myaction.do">
>         <html:parameter id="id" name="product"
> property="id"/>
>         <html:parameter id="category" name="product"
> property="category"/>
>         <bean:write name="product" property="name"/>
>     </html:link>
> </logic:iterate>
> </ul>
> 
> -or-
> 
> <html:link page="/myaction.do"
>   <html:parameter id="param1" name="mybean"
> property="myproperty"/>
>   <html:parameter id="param2" name="mybean"
> property="myotherproperty"/>
>   <html:parameter id="param3" value="literal-value"/>
>   Link Display Text
> </html:link>
> 
> -or even-
> 
> <html:link>
>   <html:parameter
> id="wombatId"><foo:wombat/></html:parameter>
>   Go to a Wombat
> </html:link>
> 
> This would give you the ability to append an arbitrary
> number of parameters to a URL while remaining purely
> tag based. Also, you can specify the value of the
> parameter using an application specific custom tag,
> such as my wombat tag above.
> 
> It is kind-of verbose, and requires some
> re-arrangement of LinkTag, but no code changes
> otherwise.
> 
> Does this seem worthwhile? Is it not very useful in
> light of JSTL? Speaking of that, are the struts tags
> going to be deprecated at some point? Any feedback
> would be appreciated.
> 
> Thanks,
> 
> -Chris
> 
> p.s. Thanks for making an extremely useful framework
> available and popular.
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message