I had posted my problem on this forum earlier- about a deployment issue and a code problem. Since that post has been moved to the IDE category, so I'm posting my servlet code specific problem here.
Please explain how the servlet is using the fileroot and webroot ? What is the concept behind this? The only fact that I'm aware of is that these Webroot and Fileroot were specified in a conf.prop file that was a part of the sample application.
Functionality of the following lines in the blogservlet code- the concept of fileroot, webroot etc.
Thanks for the quick reply. Sorry. I should have stated my problem in a better way.
I am trying to deploy a sample multimedia application given in the NokiaSeries40 book codes, using NetBeans. The client end needs to submit a photo, an audio file and a message at the server end. I was not able to generate the .war file successfully as the webroot, file root concept was not clear.
I have uploaded the server end code of the application at the URL -(http://sites.google.com/site/cuteteddy02/file-cabinet)
From the source code files, here is the entire servlet code which is using webroot and fileroot .
Ok - here is a guess without giving the code a read.
The Webroot as the name suggest is the location where the web application is deployed. Its being used to store the uploaded multimedia.
The FileRoot is the location where it reads a text file -- I saw it being used in readTextFile/writeTextFile.
To be honest the example looks way complicated than it should have been .... If your on a windows machine then you'll need tio change the webroot/fileroot to something more suitable than that in the example -- something starting with C:/ (probably)....