Solved

so Applets can't access the users hard drive...

Posted on 2004-09-29
10
158 Views
Last Modified: 2010-03-31
can they access and manipulate files on the web server?

Thanks
0
Comment
Question by:dds110
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 12183344
They can read them, but not write them unless there is a server-based mechanism to allow it (e.g. FTP)
0
 
LVL 8

Author Comment

by:dds110
ID: 12183391
hey cehj

well !@#$

is there no easy way of running a java application on the web server?  Without having to download, install, and configure a bunch of other !@#$?

0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12183408
concepts like RMI will help you to access and modify the webserver files from applets
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 86

Expert Comment

by:CEHJ
ID: 12183437
>>is there no easy way of running a java application on the web server?

Not really - webservers are designed to server web pages ;-) Application servers are to run binaries (Tomcat, JBoss etc)
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12183456
if you implement Applet as RMI client and RMI Server installed at webserver, then whenever rmi client request for modification of file or something else, rmi server should take care of that and do the related changes

regards
sudhakar
0
 
LVL 4

Expert Comment

by:gdrnec
ID: 12183495
Actually, there is a happy medium that requires only the installation of a JRE (a simple enough task). That medium is JNLP (Java Network Launch Protocol or WebStart). This allows you to distribute full blown applications that can have access to the user's hard drive and resources. Nice thing about JNLP is its versioning that allows the distributor to continually update the code without having any client side issues. It also allows the specification of a JRE version for compatibilty.

Maybe an alternative? I use it alot because of its flexibility.

Geoff
0
 
LVL 8

Author Comment

by:dds110
ID: 12183550
whoa...

slow down guys, i'm still a bit wet behind the ears when it comes to java to begin with.  All day I've been writing a "server utility" to "listen" to a file.

When the file changes, the "utility" kicks off my application (hopefully).

Everything mentioned here sounds good but...

Friday is my last working day in the civillian world.  My National Guard unit is being activated and I have to get this project done by Friday.  In other words, I don't have much time to "get into" a bunch of new stuff right now.
0
 
LVL 4

Expert Comment

by:gdrnec
ID: 12183631
Is it a client's (web client) responsibility to change the file that is being monitored? If so, you can always use an applet or a simple web page to talk to a servlet on a web server. That servlet can change files on the web server (but not the client).

Is this what you are looking for?
0
 
LVL 8

Author Comment

by:dds110
ID: 12183898
I'm not sure gdrnec, but your last post sounds promising.

Yes, the client will be changing the file.  However, my web server is IIS 5.0 on a WinXP box.  I don't think I can run a servlet without installing and configuring some third party program.

Unless you know something I don't.
0
 
LVL 4

Accepted Solution

by:
gdrnec earned 50 total points
ID: 12189280
Check out this link. It is a bit of work but nothing huge.

http://www.javaworld.com/javaworld/jw-06-2000/jw-0616-iis.html

At least it gets you across the hurdle.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java 8 lambda expresssions exception handling 3 89
maven project error 5 54
fibonacci ten numbers 4 38
Java Restore security prompts not working 10 10
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question