the first part of my page excute without problem and which cocnerne the Pie and Bar charter but for the other did not go any more.....
So help me!!
here my jsp page:
<%@ page language="java"
import="java.util.ArrayList,
java.util.Date,
java.io.ByteArrayOutputStream,
org.pentaho.core.ui.SimpleUrlFactory,
org.pentaho.messages.Messages,
org.pentaho.core.system.PentahoSystem,
org.pentaho.ui.component.DashboardWidgetComponent,
org.pentaho.core.solution.HttpRequestParameterProvider,
org.pentaho.core.solution.HttpSessionParameterProvider,
org.pentaho.core.session.IPentahoSession,
org.pentaho.core.util.UIUtil,
org.pentaho.util.VersionHelper,
org.pentaho.messages.util.LocaleHelper,
org.pentaho.core.solution.ActionResource,
org.pentaho.core.solution.IActionResource,
org.pentaho.core.solution.SimpleParameterProvider,
org.pentaho.ui.ChartHelper,
java.io.*"
%><%
// set the character encoding e.g. UFT-8
response.setCharacterEncoding(LocaleHelper.getSystemEncoding());
// get the current Pentaho session or create a new one if needed
IPentahoSession userSession = UIUtil.getPentahoSession( request );
%>
<html>
<head>
<title>Exemple du dashboard - charte circulaire </title>
</head>
<body>
<%
String region = request.getParameter("region");
String department = request.getParameter("department");
%>

<center>
<table bgcolor="green">

<tr>
<td><span style="font-family:Arial;font-weight:bold;font-size:18"><center><font color="yellow"> Exemple de PI Chart </font> </center></span>
<%
// Make a pie chart showing the regions
// create the parameres for the pie chart
SimpleParameterProvider parameters = new SimpleParameterProvider();
// define the click url template
// parameters.setParameter( "drill-url", "SampleDashboard?region={REGION}" );
// define the slices of the pie chart
parameters.setParameter( "inner-param", "REGION"); //$NON-NLS-1$ //$NON-NLS-2$
// set the width and the height
parameters.setParameter( "image-width", "450"); //$NON-NLS-1$ //$NON-NLS-2$
parameters.setParameter( "image-height", "300"); //$NON-NLS-1$ //$NON-NLS-2$
StringBuffer content = new StringBuffer();
ArrayList messages = new ArrayList();
// call the chart helper to generate the pie chart image and to get the HTML content
// use the chart definition in 'samples/dashboard/regions.widget.xml'
ChartHelper.doPieChart( "samples", "dashboard", "regions.widget.xml", parameters, content, userSession, messages, null );
%>
<%= content.toString() %>
</td>
</tr>
</table>
<br> <br>
<table>
<tr>
<td><span style="font-family:Arial;font-weight:bold;font-size:18"><center><font color="yellow"> Exemple de BAR Chart </font> </center></span>
<%
// Make a bar chart showing the regions
// create the parameres for the bar chart
SimpleParameterProvider p = new SimpleParameterProvider();
// define the click url template
// p.setParameter( "drill-url", "SampleDashboard?region={REGION}" );
// define the slices of the pie chart
p.setParameter( "inner-param", "DEPARTMENT"); //$NON-NLS-1$ //$NON-NLS-2$
// set the width and the height
p.setParameter( "image-width", "450"); //$NON-NLS-1$ //$NON-NLS-2$
p.setParameter( "image-height", "300"); //$NON-NLS-1$ //$NON-NLS-2$
StringBuffer contentBar = new StringBuffer();
ArrayList messagesBar = new ArrayList();
// call the chart helper to generate the pie chart image and to get the HTML content
// use the chart definition in 'samples/dashboard/regions.widget.xml'
out.write("Hellooooooooooooo bar chart");
ChartHelper.doChart( "samples", "dashboard", "departments.widget.xml", p, contentBar, userSession, messagesBar, null );
%>

<%= contentBar.toString() %>

</td>
</tr>
</table>
</center>
</body>
</html>

best regards