• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

applet write file to IIS - URGENT

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic