If i understand your requirement correctly, you are trying to download a file from your application which is deployed on JBoss server. Assuming you want to download a file named somefile.xls, present in your application (lets call it myApp.war), from the server. Here's what you can do:
- Create your myApp.war
- Place a file named somefile.xls directly under myApp.war
- Lets try this simple jsp:
- Place this jsp (lets call it download.jsp) directly under your myApp.war
- Deploy the myApp.war to JBoss (this just means that you have to place your myApp.war in the %JBOSS_HOME%/server/default/deploy folder)
Once deployed, access the download.jsp at
http://localhost:8080/myApp/download.jsp - Click on the download link that is shown on this jsp.
That should be it.