accessing Data.xml under WEB-INF/xml
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



accessing Data.xml under WEB-INF/xml Expand / Collapse
Author
Message
Posted 3/26/2008 2:03:59 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/7/2008 7:27:10 AM
Posts: 4, Visits: 11
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
Post #5277
Posted 3/26/2008 3:03:37 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Today @ 2:26:34 AM
Posts: 93, Visits: 715
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);


Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #5278
Posted 3/26/2008 4:41:07 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/7/2008 7:27:10 AM
Posts: 4, Visits: 11
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
Post #5279
Posted 3/31/2008 12:29:19 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Today @ 2:26:34 AM
Posts: 93, Visits: 715
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.


Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #5372
« Prev Topic | Next Topic »


Permissions Expand / Collapse

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


Execution: 0.063.