At 03:40 PM 7/10/2001 -0700, Tim Roberts wrote:
>Have I made my query
> at all clear?
Yes you have. I've used both approaches which pretty much have the pros and
cons you mentioned.
The browser redirect is:
self.response().sendRedirect('someURL')
The internal redirect is:
self.application().forward(self.transaction(), 'someURL')
You can also do an include:
self.application().includeURL(self.transaction(), 'someURL')
The doc strings in Application.py give info on the behavior diffs of these
two methods.
In my real projects I have ended up doing both. I'll give 2 examples:
My SignOut.py servlet, which invalidates the user, does a sendRedirect() to
the front page of my site. I don't want the user to see SignOut in the URL
after they have signed out. I want them to see the site as if they came to
it as a new user.
A View.py servlet I wrote can take an "object=" or a "class=" parameter.
The implementations are sufficiently different that I made a servlet for
each, ViewObject.py and ViewClass.py, and made View do a forward() to the
right one. So the user is just aware of "View", but my implementation is
broken up a little more than that.
I'm sure there are other examples for both and you'll find yourself
switching between the two depending on what you want.
Hope that helps,
-Chuck
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss