Re: How to create a context on-the-fly
Re: How to create a context on-the-fly
- Subject: Re: How to create a context on-the-fly
- From: Kieran Kelleher <email@hidden>
- Date: Mon, 22 Aug 2005 08:00:17 -0400
For sending an email using a WOComponent, the source code in Project
Wonder ERJavaMail will show you how it's done.
http://homepage.mac.com/kelleherk/iblog/C183784902/E1851653685/
index.html
On Aug 22, 2005, at 4:14 AM, Daniel Muller wrote:
Hi,
I'd like to create a context to generate a response for a component
which can be used to send an e-mail or generate a PDF file.
The below code works fine under development environment but not when I
deploy the application (OSX 10.3 with WO 5.2.3): generateResponse()
returns an empty string.
Any idea how to create a response on-the-fly for a component.
Regards,
Daniel
--
WORequest request = new WORequest(
"GET", "/", "HTTP/1.1",
new NSDictionary(
new NSArray(languages),
WO_LANGUAGE),
null, null);
WOContext context = new WOContext(request);
WOComponent page = WOApplication.application().pageWithName(pageName,
context);
WOResponse response = page.generateResponse();
--------------------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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