Sign in to follow this  
Rambabu

Unable to access .swf chart fiels located under WEB-INF folder.

Recommended Posts

Hi,

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);

%>

-------------

Even i tried with the standalone example as it is given in the "$CodeJSPBasicExampleBasicChart.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 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.

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