Re: Assigning a Session to a Custom WORequestHandler
Re: Assigning a Session to a Custom WORequestHandler
- Subject: Re: Assigning a Session to a Custom WORequestHandler
- From: Chuck Hill <email@hidden>
- Date: Tue, 11 Sep 2007 20:04:48 -0700
On Sep 11, 2007, at 5:09 PM, Jonathan Miller wrote:
Hi,
Does anyone have any help with the subject line? Basically, I'm
utilizing a customer request handler but I'm unclear how to assign
the session to the response.
The current function I'm using to generate the response looks like
the following:
private WOResponse answer(WORequest r){
WOContext ctx = new WOContext(r);
String sessionID; // Your job to get this from the request.
Application.application().restoreSessionWithID(sessionID, ctx);
Now you are responsible for checking it back in at the end of RR cycle.
Application.application().sleep();
sleep? Huh?
return Application.application().pageWithName
("ResponsePage", ctx).generateResponse();
}
Thanks in advance!!
There are several request handlers in Wonder. It might be very
instructive to have a look at them.
Chuck
--
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden