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 wrote:
> 
> 2007/11/2, lbastil <[EMAIL 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to