I wanted to know how to create a file in the WebContent folder of a dynamic web project using Java?
The basic question remaining is how to get the path of the WebContent folder.
Note: No servlet is to be used!
Edit:
Okay, i am trying to create a new xml file from java method. I want the file to be created in the WebContent folder so that the file is created even when the application is deployed.
I am using Jboss, maven, JSF to create the dynamic web project. I need the xml file to pass data to highcharts. Please note that i will be using this method only.
Overview:
Create xml file on request
XML file to created in the WebContent folder itself
Use this xml file to pass data