Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8408483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:38:38+00:00 2026-06-09T23:38:38+00:00

I am working on prototyping something, and I’m hoping someone can help me. I

  • 0

I am working on prototyping something, and I’m hoping someone can help me. I am trying to create an Add event to calendar link which will download and open an iCal file (.ics), so that they can add it to their calendar.

We are using Jax-RS with Jersey and tomcat as the container, and I have the iCal4j package. The client is jQuery/backbone.

  1. I am not sure which is the correct way to return the data. If I should be creating an ics file and storing it somewhere before returning it, or sending back a CalendarOutputter filestream from iCal4j?
  2. If I do create an ics file, where do I store that? WEB-INF folder? How?
  3. If returning the filestream, what is the correct @Produces(?) for Jax-RX?

Thanks,
Ray

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:38:39+00:00Added an answer on June 9, 2026 at 11:38 pm

    You should not create a file to return the data. You should be able to return your Calendar object directly. Try something like:

    @GET
    @Path("calendar")
    @Produces("text/calendar")
    public Response generateCalendar() {
      Calendar calendar = new Calendar();
      // Generate your calendar here
      ResponseBuilder builder = Response.ok();
      builder.header("content-disposition", "attachment;filename=calendar.ics");
      builder.entity(calendar.toString());
      return builder.build();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a rapid prototyping tool for which I would like to dynamically
I am working on Click fast prototyping router api created by Eddie Kohler for
Currently I'm prototyping search with Lucene.Net-2.0-004 on a web application. It's working very well,
Working with an undisclosed API, I found a function that can set the number
Working on OSX 10.8.2 After a fresh install of CocoaPods. I'm trying to $
Working on some check-in functionality for an application, and trying to figure out the
I'm currently trying to get a better understanding of JavaScript and prototyping. I wanted
We're working on a Backbone.js application and the fact that we can start a
I'm encountering an issue with some local web prototyping; I've been working on a
I'm working on the design of a web app which will be using AJAX

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.