struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lbastil <basti-unterw...@gmx.de>
Subject [s2] templating approach / own tag?
Date Fri, 02 Nov 2007 14:42:44 GMT

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)

thank you in advance,
basti
-- 
View this message in context: http://www.nabble.com/-s2--templating-approach---own-tag--tf4737793.html#a13548784
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message