The template examples are not much help and I am confused. Can I insert
content from an action and then forward directly to a template? Can I nest
templates together? If I do nest templates together, can I pass different
parameters to each one? A good solid example will help a lot!


I've seen the example below before, but it doesn't show how templates should
be used if you have actionservlets and a MVC architecture. Thanks

--min

> -----Original Message-----
> From: George, Carl [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 6:10 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Help creating a portal page.
>
>
> You can do exactly what you want with templates... You can pass in a page
> name, or put it in the session, or wherever you can get to it, and have a
> content section of the template to use it dynamically.
>
> <%@ taglib uri='/WEB-INF/tlds/struts-template.tld'
>                 prefix='template' %>
> <%@ taglib uri="/WEB-INF/tlds/struts.tld" prefix="struts" %>
>
>
>
>
> <% String msg = request.getParameter("page"); %>
>
>
> <template:insert template='/NavTemplate.jsp'>
>
>   <template:put name='title' content='Navigation' direct='true'/>
>   <template:put name='header' content='/NavBar.jsp' />
>   <template:put name='sidebar' content='/sidebar2.jsp' />
>    <template:put name='content' content='<%= msg  %>' />
>   <template:put name='footer' content='/footer.html' />
>   </table>
>
> -----Original Message-----
> From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 5:48 PM
> To: struts
> Subject: Help creating a portal page.
>
>
> Hi. I am trying to create a portal page through struts. I am not
> sure how to
> go about it. I would like to use templates, but they seem
> somewhat limiting
> in that you must insert your templates using taglibs from a JSP page --
> unless I am mistaken here.
>
> Ideally, the templates should be able to be moved dynamically.
> Moved up and
> down in order, enabled and disabled.
>
>
>

Reply via email to