struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matts" <mateof...@hotmail.com>
Subject Re: [tiles] Re: Struts tiles cewolf problem
Date Mon, 04 Sep 2006 14:07:38 GMT
My tiles-def.xml looks like:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles 
Configuration 1.1//EN"

"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">

<tiles-definitions>

<!-- layout1: utilizado en la pagina de login -->

<definition name=".layout1" path="/WEB-INF/tiles/layout1.jsp">

<put name="title"/>

<put name="body"/>

</definition>

<definition extends=".layout1" name="greeting.page">

<put name="title" value="Greeting"/>

<put name="body" value="/WEB-INF/tiles/body-greeting.jsp"/>

</definition>

</tiles-definitions>

The page that is supposed to show the chart is greeting.jsp wich has the 
body body-greeting.jsp.
greeting. jsp (at web-root/pages):
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert definition="greeting.page"/>

body-greeting.jsp (at web-inf/tiles):
<%@taglib uri='/WEB-INF/cewolf.tld' prefix='cewolf' %>


<table border="0" cellspacing="0" cellpadding="0">

<tr>

<td>

<h1><%=request.getAttribute("greeting")%></h1>

</td>

</tr>

</table>

<jsp:useBean id="pageViews" class="logica.PageViewCountData"/>

<cewolf:chart id="line" title="Page View Statistics" type="line" 
xaxislabel="Page" yaxislabel="Views">

<cewolf:data>

<cewolf:producer id="pageViews"/>

</cewolf:data>

</cewolf:chart><p>

<cewolf:img chartid="line" renderer="cewolf" width="400" height="300"/>

<P>

thanks for reply.
Matts.

----- Original Message ----- 
From: "Antonio Petrelli" <brenmcguire@tariffenet.it>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, September 04, 2006 10:59 AM
Subject: [tiles] Re: Struts tiles cewolf problem


> Matts ha scritto:
>> Hi, I'm developing a web app with struts, tiles. I want to use cewolf to 
>> render chart. It's work fine if i don't use tiles.
>> The problem is that with tiles the chart are not show.
>>
>> Any one nows how to integrate correctly with tiles??
>>
>
> Do you use Tiles definitions? If yes can you post them here, along with 
> layout pages and the JSP page supposed to show the chart?
> Do you receive any exception? If yes, can you post them?
>
> Ciao
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 


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


Mime
View raw message