Hello struts-dev,

Now I use next scheme to pass parameters to the template page -

--------------- page ------------
<template:insert template="layout/main.jsp?chapter=news">
</template:insert>
---------------------------------

and check parameter 'chapter' in template.
-------------- template ---------
<logic:present parameter="chapter">
...
</logic:present>
---------------------------------

But I think that this approach is not so flexible because of direct
query string editing. For my mind constructions listed below is more
preferable - 

--------------- page ------------
<template:insert template="layout/main.jsp">
 <template:put name="chapter" content="news" direct="true"/>
</template:insert>
---------------------------------

-------------- template ---------
<logic:present template="chapter">
 <bean:define id="chapter" template="chapter"/>
 ....
</logic:present>
---------------------------------

How about it?

-- 
Best regards,
 Oleg                          mailto:[EMAIL PROTECTED]


Reply via email to