This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes applet write file to IIS - URGENT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "applet write file to IIS - URGENT" Watch "applet write file to IIS - URGENT" New topic
Author

applet write file to IIS - URGENT

Christophe Lee
Ranch Hand

Joined: Jul 10, 2001
Posts: 142
Hey guys,
I'm trying to use an applet to write some data to the IIS server. I'm using httpURLConnection in the applet to start a connection with IIS. But, from my understanding, I cannot have the applet write a file directly to the server. How do I write a program to handle connections for the IIS?
Thanks a lot.
Sean MacLean
author
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
There are several ways of doing this( EJB, Servlet) but I would suggest using RMI for it's clarity of execution (less overhead that EJB, and, without custom fiddling, more secure that a servlet). You can have you applet make a connection to you RMI server implementation and then you have complete access to the IIS server as if you were executing the call from the server's environment. Look for RMI applet chat apps for a starting point of how to make the connection back to the server.
Sean
Christophe Lee
Ranch Hand

Joined: Jul 10, 2001
Posts: 142
Thanks Sean,
Will using RMI work if the client downloads the applet using Internet Explorer?
Essentially, I have to have an applet that downloads to the client every time they access the webpage. Then, the applet will send back information to the IIS server (such as, view duration) and then, keep a log file on the server about all the page accesses.
It seems this is quite a daunting task, as I am a lowly undergrad student volunteering my time with the MIS lab at school here. I'm SCJP2, but they want this done by week's end. Is this feasible?
Thank you again.
Chris
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet write file to IIS - URGENT
 
Similar Threads
applet to IIS via sockets
Server side includes in WebLogic 10 JSP
Eclipse - debugging servlets
IIS and J2EE
Reagarding Applet accessing database