--- "Fenderbosch, Eric" <[EMAIL PROTECTED]> wrote: > The whole use-a-named-property-for-everything is great so that marketing > can change the text/copy without involving a HTML/JSP developer, as well > as the future ability to I18N a site down the road. However some things > just get ugly. > Example: > Old line of HTML: > The FedEx Custom Critical <a href="/us/shipping/default.shtml">Shipping > Toolkit</a> enables you to: > > New lines w/ tags: > <bean:message key="message.benefit.one"/> > <a href="<bean:message key="href.shippingToolkit"/>"> > <bean:message key="link.shippingToolkit"/> > </a> > <bean:message key="message.benefit.two"/> > > (I know I could use a <html:link> tag) > > Any ideas for making this simpler? Should I just define one large > resource like: > > message.benefits=The FedEx Custom Critical <a > href="/us/shipping/default.shtml">Shipping Toolkit</a> enables you > to: > > Then simply do: > <bean:message key="message.benefits"/>
That's what I would do except use the JSTL version: <fmt:message key="message.benefits"/> It's generally not a good idea to store markup in resource files but if it simplifies the page and you don't need to use the message in non-html pages it's fine. David > > ??? > > Thanks. > > Eric > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

