Using cewolf:param tag

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ahopkins
Posts: 8
Joined: Thu Jul 20, 2006 2:10 pm

Using cewolf:param tag

Post by ahopkins » Fri Jul 28, 2006 3:12 pm

Hi,

I am trying to produce various types of charts from data that I retrieve from the DB. I have spent weeks doing some extensive testing and I have found that Collections can not be read through the cewolf:param tag. I populated some dummy data in my producer bean to do the testing. When I put the below code in my jsp file and producer bean respectively, I can print graphs. BUT, when I change the String to a Collection (i.e., like a Map, List) and try to pass data through to the producer bean from the jsp, the application does not work. My data coming from the DB is in the form of a Collection, not String, so how can I get this to work? The interesting thing is

JSP
===
String user = "Andre";
<cewolf:param name="totalUsers" value="<%=user%>"/>

Producer Bean
=========
String data = (String)params.get("totalUsers");

Locked