Re: Nested templates...

2001-12-31 Thread Ted Husted

You might want to try Cedric's Tiles library, which is more powerful
than the original template library. 

http://www.lifl.fr/~dumoulin/tiles/

This is also in the contrib folder for the nightly build, though I
believe Cedric will be submitting it to Jakarta Taglibs soon, since it
can be also used outside of Struts. 

Tiles also has a very nifty feature that can render a template
dynamically, and eliminate many of the "wrapper" files. I've used Tiles
my own production applications, and couldn't imagine getting by without
it. Highly recommended.


Marcelo Caldas - CCSC wrote:
> 
> Hi,
> Is it possible to nest templates?
> 
> Like for instance I have template.jsp with:
> 
> 
> 
> 
> 
> Then I have a listTemplate.jsp like:
> 
> 
>  
>  
>  
>  
>  
> 
> 
> Now it's time to use my listTemplate.jsp:
> Finally my page
> 
> 
> 
> 
> Right now, I'm receiving the following exception:
> java.lang.ClassCastException: org.apache.struts.taglib.template.util.ContentMap
> 
> Thanks in advance,
> Marcelo.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Nested templates...

2001-12-27 Thread Marcelo Caldas - CCSC

Hi,
Is it possible to nest templates?

Like for instance I have template.jsp with:





Then I have a listTemplate.jsp like:


 
 
 
 
 


Now it's time to use my listTemplate.jsp:
Finally my page




Right now, I'm receiving the following exception:
java.lang.ClassCastException: org.apache.struts.taglib.template.util.ContentMap

Thanks in advance,
Marcelo.