Solved

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

Posted on 2001-09-05
5
360 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
ID: 6456184
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
ID: 6456581
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
ID: 6456698
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
ID: 8932587
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 19
splitOdd10 challenge 5 105
GUI builder for Eclipse? 8 35
runtime exception 2 27
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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

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