This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes developing jsp page using cewolf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "developing jsp page using cewolf" Watch "developing jsp page using cewolf" New topic
Author

developing jsp page using cewolf

vina kum
Greenhorn

Joined: Jun 24, 2009
Posts: 21
Hi
I am a newbie to charts currently i am a developing a bar chart in jsp page with cewolf tag libraries but i am struggling with database connectivity i am using mssql in my system i do not know how to retrieve the code with cewolf can you please post me sample code how to connect with mssql.
Thanks in advance.
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

Welcome to javaranch

Here is the link for jdbc mysql which may help you...

http://www.developer.com/java/data/article.php/3417381

However, here is some code snippet that might help you.




Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
vina kum
Greenhorn

Joined: Jun 24, 2009
Posts: 21
Hi
Thanks for your response i have connected to mssql database but i am little bit confused how to retrieve dataset from database i am sending my code please help me how to retrieve data correctky
Thanks in advance.
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

What is happening after you run your code ? Are you getting any exceptions ?

I will suggest you to have a look at the below hyperlink

http://www.vsj.co.uk/articles/display.asp?id=738
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41020
    
  43
It looks like the code is adding states and countries alternately to the Dataset. That doesn't make much sense - a pie chart consists of categories and values (which determine the size of the pie slice). What is it, exactly, that you want to show in the chart?
Here's an example of a pie chart Dataset producer:


Ping & DNS - my free Android networking tools app
vina kum
Greenhorn

Joined: Jun 24, 2009
Posts: 21
Hi
when i run the code it is not displaying pie chart even not giving exception simply it is displaying arrow mark in the place of image in the jsp page.I think adding dataset object is the problem. Any suggestions will greatly welcome.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41020
    
  43
As I said, the code you posted doesn't do anything useful that would create a pie chart. Try the code I posted instead.
vina kum
Greenhorn

Joined: Jun 24, 2009
Posts: 21
Hi
I have your code in import statement no problem with loading drivers.I have written the code by using cewolf tags.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41020
    
  43
I can't tell from your last post if the problem is solved, or what exactly you tried and what the result of that was.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: developing jsp page using cewolf
 
Similar Threads
cewolf tooltips from resultset
cewolf tooltips from resultset
Cewolf help !!
cewolf
Cewolf and database?