Solved

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

Posted on 2004-09-29
10
156 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
 
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now