I understand that a typical vCalendar file say event.vcs has the format shown below:
Code:PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN VERSION:1.0 BEGIN:VEVENT DTSTART:20010507T183000Z DTEND:20010507T190000Z LOCATION;ENCODING=QUOTED-PRINTABLE:Test Location UID:040000008200E00074C5B7101A82E00800000000804CA453F2D6C0010000000000000000100 00000D853B7630442D51188850060974F9E6C DESCRIPTION;ENCODING=QUOTED-PRINTABLE:This is a Test Event.=0D=0AHere are i=ts details=0D=0AThis event has been added from a vCalendar format file=0D==0Ausing a browser based web application.=0D=0A=0D=0ACool huh?=0D=0A SUMMARY;ENCODING=QUOTED-PRINTABLE:Test Event PRIORITY:3 END:VEVENT END:VCALENDAR
If I create the above file and via a link to that file, it will activate outlook client and create an appointment without problem.
I would like to dynamically create this without having to create a .vcs file. I was trying with the following in JSP, but without luck. Any ideas?
Code:<% response.setContentType("text/x-vCalendar"); response.setHeader("Content-Disposition","filename=event.ics");%> PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN VERSION:1.0 BEGIN:VEVENT DTSTART:20010507T183000Z DTEND:20010507T190000Z LOCATION;ENCODING=QUOTED-PRINTABLE:Test Location UID:040000008200E00074C5B7101A82E00800000000804CA453F2D6C0010000000000000000100 00000D853B7630442D51188850060974F9E6C DESCRIPTION;ENCODING=QUOTED-PRINTABLE:This is a Test Event.=0D=0AHere are i=ts details=0D=0AThis event has been added from a vCalendar format file=0D==0Ausing a browser based web application.=0D=0A=0D=0ACool huh?=0D=0A SUMMARY;ENCODING=QUOTED-PRINTABLE:Test Event PRIORITY:3 END:VEVENT END:VCALENDAR <%response.flushBuffer();%>
A working ASP version could be accessed here:
http://www.devx.com/getHelpOn/10MinuteSolution/20508
It seems to me that this ASP is also writing into the browser. I am just not sure why it does not work in JSP. Any assistance is very much appreciated.


Reply With Quote


Bookmarks