I use this in tests:

testContext = new WOContext(new WORequest("GET", 
"http://localhost/cgi-bin/WebObjects";, "HTTP/1.1", null, null, null));

Not sure offhand what additional information might be needed to generate your 
email content.

Chuck


On 2011-10-29, at 10:09 PM, Paul Hoadley wrote:

> On 29/10/2011, at 10:42 PM, Ken Anderson wrote:
> 
>> Thanks Paul.  Unfortunately, currentContext() will return null, since this 
>> will not be running inside a request/response loop.  I'm probably just going 
>> to create a context to use…
> 
> Oh, sorry Ken.  I obviously didn't read your original post closely enough.  
> Can you just call WOContext's constructor, then?  (And won't you need a 
> WORequest to do that?  Sorry, now I've got more questions than answers for 
> you.)
> 
> 
> -- 
> Paul.
> 
> http://logicsquad.net/

-- 
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.    
http://www.global-village.net/products/practical_webobjects







 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to