Sign in to follow this  
jhonilson

Problem With My Jsp Folder Structure In Netbeans

Recommended Posts

Hi

I tried FusionCharts in a simple project and it work fine. I put 3 folders (Includes, Charts and Data) inside the "Web Pages"(root) folder in a web application in Netbeans 6.9.

Is to say, there is a folder called "Web Pages" and Inside it are "META-INF", "WEB-INF" and "Charts, Include and Data" fusioncharts folders.

I did put all my jsp pages inside "Web Pages" (root) folder and my application and fusioncharts work fine!!! but...

 

I am working in other project where i use other folders structure and fusionchart not show the graph!

The folder structure is: "Web Pages" inside is "META-INF and WEB-INF" inside web-inf I put other folder called "VISTAS" and inside it i put all my jsp pages.

I tried copying all the fusioncharts folder inside "VISTAS" but it does not work!! I had moved the 3 folder to many places and i dont get nothing. When I check the Firefox errors console, it say "Fusioncharts is not defined" . It refere to "var chart_myFirst = new FusionCharts("Charts/Line.swf", "myFirst", "600", "300", "0", "0");" but i am sure that I copied the "FusionCharts.js" file in the correct folder.

 

Please can you help me?!!! I am confused really!

 

Muchas Gracias

Jhon

 

PD: Here the code

 

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<HTML>

<HEAD>

<TITLE>FusionCharts - Simple Column 3D Chart</TITLE>

<script language="Javascript" src="Charts/FusionCharts.js"></script>

<style type="text/css">

<!--

body {

font-family: Arial, Helvetica, sans-serif;

font-size: 12px;

}

-->

</style>

</HEAD>

<BODY>

 

<CENTER>

<h2>FusionCharts Examples</h2>

<h4>Basic example using pre-built Data.xml</h4>

 

<jsp:include page="Includes/FusionChartsRenderer.jsp" flush="true">

<jsp:param name="chartSWF" value="Charts/Line.swf" />

<jsp:param name="strURL" value="Data/Data.xml" />

<jsp:param name="strXML" value="" />

<jsp:param name="chartId" value="myFirst" />

<jsp:param name="chartWidth" value="600" />

<jsp:param name="chartHeight" value="300" />

<jsp:param name="debugMode" value="false" />

</jsp:include>

 

<BR>

<BR>

<a href='../NoChart.html' target="_blank">Unable to see the chart

above?</a><BR>

<h5><a href='../default.htm'>« Back to list of examples</a></h5>

</CENTER>

</BODY>

</HTML>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this