• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Generating HTML without WORequest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generating HTML without WORequest


  • Subject: Re: Generating HTML without WORequest
  • From: "Gennady Kushnir" <email@hidden>
  • Date: Sun, 16 Dec 2007 15:34:04 +0300

thank you for that. it seems to fit.
another question is concerned generating multiple responses. because i need to sent multiple unique emails (maybe several hundreds) at one transaction.
the problem is that when WOComponent generates response WOContext gets initialized with this response.
do i need to create new context for each email (that is separate WOResponse) or it is possible to create multiple responses in single WOContext?

2007/12/15, Rudi Angela < email@hidden>:
I tackled the same problem using a dummy context:

     public WOContext dummyContext()
    {
        WOApplication app = Application.application();
        String dummyUrl = app.cgiAdaptorURL() + "/" + app.name() + ".woa/wa/dummy";
        WORequest request = app.createRequest( "GET", dummyUrl, "HTTP/1.0", null, null, null);
        WOContext context = app.createContextForRequest (request);
        context._generateCompleteURLs ();
        return context;
    }

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Fwd: Generating HTML without WORequest (From: "Gennady Kushnir" <email@hidden>)
 >Re: Generating HTML without WORequest (From: Kieran Kelleher <email@hidden>)
 >Re: Generating HTML without WORequest (From: "Tonny Staunsbrink" <email@hidden>)
 >Re: Generating HTML without WORequest (From: "Gennady Kushnir" <email@hidden>)
 >Re: Generating HTML without WORequest (From: Rudi Angela <email@hidden>)

  • Prev by Date: [OT] JOB: Los Angeles
  • Next by Date: Direct Actions in 5.4
  • Previous by thread: Re: Generating HTML without WORequest
  • Next by thread: J2EE JDBC Connections
  • Index(es):
    • Date
    • Thread