Sign in to follow this  
Arindam

accessing Data.xml under WEB-INF/xml

Recommended Posts

hi, is there any way to tell my jsp page to locate the data.xml under the web-inf folder? what i did is:

 

 

 

String chartHTMLCode=FusionChartsCreator.createChartHTML("FusionCharts/Column3D.swf", "/WEB-INF/jsp/test.jsp", "", "myFirst", 600, 300,false);

 

 

 

but since accessing directly in WEB-INF is not possible. any suggestions on how can i pass the data.xml to the spring controller

Share this post


Link to post
Share on other sites

Hi Jooly,

Could you please try putting test.jsp in the application folder or any folder which is relatively accessible by the application.

 

  String chartHTMLCode=FusionChartsCreator.createChartHTML("FusionCharts/Column3D.swf", "test.jsp", "", "myFirst", 600, 300,false);

Share this post


Link to post
Share on other sites

Hi Arindam,

 

 

 

yes it works when it is placed on any folder other than WEB-INF.

 

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

 

 

 

i also tried to create subfolders:

 

String chartCode= createChart("FusionCharts/Column3D.swf", "charts/xml/Data.xml", "", "myFirst", 600, 300, false, false);

 

 

 

the sole reason why i want to put it under than WEB-INF is to ensure security, since i dont want my jsp/xml file to be accessed by anonymous users.

 

 

 

so is there any way to specify the file

 

String chartCode= createChart("FusionCharts/Column3D.swf", "WEB-INF/xml/Data.xml", "", "myFirst", 600, 300, false, false);

 

 

 

an example would be nice:D

Share this post


Link to post
Share on other sites

Hi Jooly,

  In WEB-INF folder configuration files are kept. You can also keep java classes and libraries. You can create a java class which would provide a method to return xml for the chart. This might work.

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