File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Cewolf help !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Cewolf help !!" Watch "Cewolf help !!" New topic

Cewolf help !!

vicky chauhan
Ranch Hand

Joined: Nov 27, 2008
Posts: 41

I am making a webapplication which uses cewolf to generate barchart.

1) data for the barchart should come from produceDataset(Map params) - so i have kept all the code for accessing data from database there.

2) JSP using cewolf tags will create an instance of above dataproducer class and will call that function - will get the data from database - produce the chart - happy ending.......

3) problem is, i want a primary key (say username) based on which i will retrieve rows from database related to that key only... using session.setAttribute() i am able to pull that value till final jsp which is using cewolf.

BUT I AM NOT GETTING HOW TO PASS THIS VALUE TO produceDataset(Map params) ??

Need help on this... I know i have to set params to key value in jsp and using "Map params" have to retrieve that inside produceDataset function.. BUT I DONT KNOW HOW TO DO IT ??

could anyone show example code for doing this..
a) setting params to value i want to pass to produceDataset in JSP and to retrieve those params to use with database inside produceDataset method...

Thanks a lot!!
I agree. Here's the link:
subject: Cewolf help !!
It's not a secret anymore!