• 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

HELP! APPLET-servlet communication

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello folks. I'm new to this forum. I have a dilemna. Instead of re-hashing it here. Here's my problem as described in this post:

https://coderanch.com/t/360651/Servlets/java/HELP-Applet-trouble-Servlet-response

Any help would be greatly appreciated! I'm sort of dissappointed that I have appeared to have stumped some ppl here .

-Dan
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Write the servlet so that when you POST all the information, it fetches the Excel document from the database and stores it in a temporary directory in web space under a name which is an MD5 checksum or some other long string of nonsense characters. Then set a HttpSessionBindingListener to delete the file when the session expires. Make sure that temporary directory doesn't allow indexing. Finally, return the URL as the servlet's response.

Now the applet POSTs to the servlet and gets that URL, then uses showDocument() to open the spreadsheet in the browser.

Still waiting for that pig pen to get shoveled out.
 
reply
    Bookmark Topic Watch Topic
  • New Topic