File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Open a VCalendar file on the fly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Open a VCalendar file on the fly" Watch "Open a VCalendar file on the fly" New topic

Open a VCalendar file on the fly

Jeppe Sommer
Ranch Hand

Joined: Jan 07, 2004
Posts: 270

I have stored a vCalendar (v2.0) file in the database and want to open the vCalendar file with Outlook using a link from my JSP page which calls a servlet.

When clicking on the link on my local host ( it works fine and Outlook opens the file and prompts the user for an event reply.

But when clicking on the same link when the application is running on the webserver ( it doesn�t work. Then Outlook comes up with an popup-message: "The vCalendar-file can�t be imported".

Is that an Outlook security issue or is it a problem in my code, i.e. the header information or something else?

(I am sure that the file (invitation.ics) works as this file is also sent with an e-mail. And after downloading it I can import it in Outlook.)

[ May 09, 2007: Message edited by: Jeppe Fjord ]
I agree. Here's the link:
subject: Open a VCalendar file on the fly
jQuery in Action, 3rd edition