my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: applet write file to IIS - URGENT
 
Similar Threads
Reagarding Applet accessing database
applet to IIS via sockets
IIS and J2EE
Eclipse - debugging servlets
Server side includes in WebLogic 10 JSP