Peter Lyons [mailto:[EMAIL PROTECTED]] wrote:
> I'm having trouble figuring out how to pragrammatically create a
> Servlet instance, configure it with references from my local scope,
> and then"return" it as the next page to render.   I'm coming from a
> WebObjects background, where you can bind form submissions to action
> methods that return a WOComponent (not necessarily the same one that
> has the action method).  However, the WebWare action flow does not
> seem to expect you to return anyting from the action method. So do I
> create an instance, and then call awake then respond or something
> like that?
>   The way I currently have it working is the source page pushes some
> values into the request with setField(), then I forward the request
> to the target page, and the target page grabs them with getField()
> and then delField()s them.  This seems to work OK, but I wanted to
> see if there was another method.

That's the way I do it, although I usually don't bother to call delField().
Also, since Python is dynamic, there's nothing stopping you from just
assigning to arbitrary new attributes of the request object if you prefer.

The WebObjects technique sounds interesting, but I don't think anything
similar is possible in Webware.

- Geoff



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to