Solved

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

Posted on 2001-09-05
5
376 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
[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
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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 …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

752 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