This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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...