This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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.
Please explain how the servlet is using the fileroot and webroot ?
Can't do it because you only show how the values for fileroot and webroot are read from a properties file or set to default values if the properties read fails.
Presumably the actual USE of these variables is somewhere else.
Joined: Apr 18, 2010
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)....