Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

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

Thanks
0
Comment
Question by:dds110
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
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 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.
Suggested Courses

670 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