Re: [Webware-discuss] Adding info when forwarding requests

2002-09-23 Thread Michael Engelhart
I completely agree. Struts is nice for a site with a small set of actions but when a site gets very complex it's a different story. As an example I just was handed over a large complex web application from a different consultant and the amount of class files, XML files, and jsp tags in the

Re: [Webware-discuss] Adding info when forwarding requests

2002-09-23 Thread Mike Orr
On Mon, Sep 23, 2002 at 10:20:06AM -0400, Aaron Held wrote: > class loginUser(FormValidator): > def validate(self,fieldDict): > user=UserManager.login(fieldDict['userName'],fieldDict['password']) > if (user==None): > return {"form":'This is not a valid Use

Re: [Webware-discuss] Adding info when forwarding requests

2002-09-23 Thread Michael Engelhart
I completely agree. Struts is nice for a site with a small set of actions but when a site gets very complex it's a different story. As an example I just was handed over a large complex web application from a different consultant and the amount of class files, XML files, and jsp tags in the

Re: [Webware-discuss] Adding info when forwarding requests

2002-09-23 Thread Aaron Held
I like this thread, because it is one of the main reasons that I switched from Java to Python for web development. We all (python and Java developers) have an understanding of how to architect a web system and divide logic and presentation, but it is so much easier in Webware then Java. We w

Re: [Webware-discuss] Adding info when forwarding requests

2002-09-20 Thread Aaron Held
Why do you want to forward to another servlet? If you need additional logic you can put the code in modules and call them from the main servlet as needed? You can pass around the session object if you need to. Tim Lavoie wrote: >>"GT" == Geoffrey Talvola <[EMAIL PROTECTED]> writes: > >

RE: [Webware-discuss] Adding info when forwarding requests

2002-09-20 Thread Tim Lavoie
> "GT" == Geoffrey Talvola <[EMAIL PROTECTED]> writes: GT> You can modify the request object however you please before GT> calling forward(). Just do: GT> self.request().setField('newkey', 'newvalue') GT> And that key/value pair will be available to the servlet you

Re: [Webware-discuss] Adding info when forwarding requests

2002-09-20 Thread Aaron Held
> No. What is Struts? Struts is a Java Apache (jakarta Project) that uses the MVC architecture (Model View Controller) Struts = Cheetah using the 'Containment' method servlet.py = controller template.tmpl = view So in jsp/psp you call the view and the view has logic to manipulate the model

Re: [Webware-discuss] Adding info when forwarding requests

2002-09-20 Thread Aaron Held
Not sure what you are looking for, but I use Cheetah in a non-standard way that may fit. 1) I have a templates directory that is not in the web path 2) I create normal webware servlets based on page.py 3) I override writeHTML with a new function that prepars all of the details needed for that p

RE: [Webware-discuss] Adding info when forwarding requests

2002-09-20 Thread Geoffrey Talvola
Tim Lavoie wrote: > Hi all, > > I'm new to Webware, but have been using other web environments for a > lng time. What I would like to do is to use Webware for a core > controller, forwarding to Cheetah for display. Think of Struts, if you > know that. > > I've got a couple main questions to

Re: [Webware-discuss] Adding info when forwarding requests

2002-09-20 Thread Mike Orr
On Fri, Sep 20, 2002 at 12:28:29PM -0500, Tim Lavoie wrote: > What I would like to do is to use Webware for a core > controller, forwarding to Cheetah for display. Think of Struts, if you > know that. No. What is Struts? > Also Cheetah-related, but what is the best way to have other > serv

[Webware-discuss] Adding info when forwarding requests

2002-09-20 Thread Tim Lavoie
Hi all, I'm new to Webware, but have been using other web environments for a lng time. What I would like to do is to use Webware for a core controller, forwarding to Cheetah for display. Think of Struts, if you know that. I've got a couple main questions to start off: To forward using th