Subject: Re: templating approach / own tag? 2007-11-02 - By lbastil
Back
Thank you for this hint, but in this case I don't think so.
I am already use tiles for the overall page structure, but for this minor substructures I don't want to use a kind of tiles sub-hierarchy.
Is there no equivalence to former custom tag?
Something like a ftl-script I can apply parametrized?
Thank you, basti
Antonio Petrelli-3 (See http://lli-3.ora-code.com) wrote: > > 2007/11/2, lbastil <basti-unterwegs@(protected)>: >> >> >> Hi, >> >> I want to archive the following: >> >> I noticed in my page code often this redundant structure: >> (dynamic parts in []) >> >> >> <div id="headerTitle"> >> [Header Section Name] >> </div> >> <div id="headerContent"> >> [ >> ... various different content, tables, ... and so on >> ] >> </div> >> >> Now I would like to create some parameterized template, something I could >> call like: >> (pseudocode): >> <Section title="[Header Section Name]"> >> [ >> ... various different content, tables, ... and so on >> ] >> </Section> >> >> which produces the code shown above dynamically. >> >> How can I do this most easy with struts2 framework? >> (in struts1 I would have created an own tag) > > > > I think this is a task for Tiles :-) > http://tiles.apache.org/ > Struts 2 contains a Tiles plugin: > http://struts.apache.org/2.x/docs/tiles-plugin.html > > Antonio > >
-- View this message in context: http://www.nabble.com/-s2--templating-approach-- -own-tag--tf4737793.html#a13549228 Sent from the Struts - User mailing list archive at Nabble.com.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|