Re: Generating HTML without WORequest
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