Results 1 to 4 of 4

Thread: Getting access to the HttpServletResponse

Hybrid View

  1. #1
    Join Date
    May 2005
    Location
    Fallbrook, CA
    Posts
    22

    Default Getting access to the HttpServletResponse

    I need to get access to the HttpServletResponse so I can pass it to a view (which happens to be Velocity) from an Action in a SWF. What is the best way of doing that? I'm currently subclassing AbstractAction. Is there a different Action class I should be using?

    BTW, the whole point of this exercise is to be able to set the contentType to excel in the view.

    I'm also looking into an alternative way of getting to the HttpServletResponse in Velocity using Velocity methods (naturally, I'm asking the Velocity guys and gals on their mailing list).

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    I believe this is on the wiki FAQ:

    ((HttpServletEvent)context.getSourceEvent()).getRe sponse();
    Keith Donald
    Core Spring Development Team

  3. #3
    Join Date
    May 2005
    Location
    Fallbrook, CA
    Posts
    22

    Default

    Thanks. Of all the places I spent hours looking, the FAQ wasn't one of them. I'll look there in the future.

    One correction... the FAQ casts to "ServletEvent" rather than "HttpServletEvent".

  4. #4
    Join Date
    Feb 2009
    Posts
    28

    Default Gettng flow context

    How do I get the context? Also ServletEvent does not get resolved. COuld you please respond?

    Thank you

Similar Threads

  1. Replies: 2
    Last Post: Jul 21st, 2005, 06:09 PM
  2. Access to model
    By maveganzones in forum Web
    Replies: 6
    Last Post: Jul 8th, 2005, 01:00 PM
  3. Replies: 0
    Last Post: Jun 10th, 2005, 05:44 AM
  4. Replies: 2
    Last Post: Nov 1st, 2004, 01:43 PM
  5. What's available after access denied?
    By pburleson in forum Security
    Replies: 4
    Last Post: Oct 29th, 2004, 09:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •