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 PROTECTED]>:
>
> 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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to