Unable to access .swf chart fiels located under WEB-INF folder.
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Unable to access .swf chart fiels located... Expand / Collapse
Author
Message
Posted 6/16/2008 5:35:15 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/18/2008 12:29:26 AM
Posts: 4, Visits: 8
I placed all .swf files under WEB-INF folder for the security reasons. But I am not able to access those files if they are in WEB-INF folder through javascript and Java code in the JSP. (See the below code)

JavaScript: 

<script type="text/javascript">

new FusionCharts("/WEB-INF/fusionCharts/Bar2D.swf", "", "xmlString", "chart1Id", "400", "180", 0, 0);            (or)

new FusionCharts("../../WEB-INF/fusionCharts/Bar2D.swf", "", "xmlString", "chart1Id", "400", "180", 0, 0);

</script>

Java:

<%

String chartHTMLCode=FusionChartsCreator.createChartHTML("../../WEB-INF/fusionCharts/Bar2D.swf", "", "strxml", "scoreGraph", 400, 180, false);

%>

Please let me know how can i access these files from the WEB-INF folder.

Note that i can able to access .swf files if i placed them outside of web-inf folder. 

Thanks,

Rambabu.

Post #6867
Posted 6/16/2008 9:26:41 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/18/2008 12:29:26 AM
Posts: 4, Visits: 8
Hi,

Even i tried with the standalone example as it is given in the "$\Code\JSP\BasicExample\BasicChart.jsp" with the Tomcat 6.0.  But i am not able to access the Column3D.swf file located under the /WEB-INF/FusionCharts/.    (See the below code)

<%

String chartHTMLCode=createChartHTML("../../FusionCharts/Column3D.swf", "Data/Data.xml", "", "myFirst", 600, 300, false);

%>

Please let me know the solution for this.

Thanks,

Rambabu.

Post #6870
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 6:19pm


Execution: 0.094.