Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet write file to IIS - URGENT

 
Christophe Lee
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic