J2ME - use an external directory from a .jar
I am working at a Web Server for Mobile Devices in J2ME. I made allready the base structure with sockets. My only problem for now remains the HTTPDOCS directory where I need to put the xhtml, css, imagines, servlets and over files which it can be acces from a browser on the Internet or localhost. I create a path to this directory in SRC (I use netbeans) and it works (with little problems but is a step foward). The problem is if I do this I need to include the HTTPDOCS directory into the .JAR and if I do that I can't change the files from the public directory unless I build the application again.
I presume that I need to work with an external directory or external resources but I don't have any ideea how to do that.
Please help me.
I think JSR 75 File Connection API is what I need. I hope I can change and understand the dir's path, because in this moment I have something like this:
I think instead of that peace of code I need to do something like dir = (FileConnection)Connector.open("file://localhost/" + currDirName); but I don't understand where to get this file on localhost and how to get the resource as a stream for this path.
Someone have an ideea ?
|All times are GMT. The time now is 07:35 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.