Solved

Can a java applet write files in the server???

Posted on 2001-09-05
5
339 Views
Last Modified: 2012-05-07
Hi, Can a java applet create and write files in the  static server, where the applet itself is situated? Is there any restriction? Note also, I want to run the applet through a client mechine (browser) and whenever I want I want to create a file in the server, with specified name and path. If possible, please write some code also.

Subhasis.
0
Comment
Question by:mitra_subhasis
5 Comments
 
LVL 6

Expert Comment

by:kotan
Comment Utility
Questions Asked : 9
Last 10 Grades Given :
Question Grading Record : 0 Answers Graded / 0 Answers Received
0
 

Accepted Solution

by:
infy_geek earned 20 total points
Comment Utility
Hi,

  you will have to make this a trusted applet. U can try using rmi to write to a file on the server side. Or else, handle an event such as button click to send a response to the server with the reqd,. info to write to a file
0
 
LVL 3

Expert Comment

by:daitt
Comment Utility
You can place a servlet at the server (same IP that the applet comes from). The applet then sends the request to servlet. The servlet will create the file according to the request.
0
 
LVL 20

Expert Comment

by:Venabili
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- points for infy_geek

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venabili
EE Cleanup Volunteer
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

743 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

11 Experts available now in Live!

Get 1:1 Help Now