On 01/12/2003 10:30:53 PM Luke wrote:

>1) Page design should have almost nothing to do with logic, except for
basic
>display logic.
>2) Actions should have little to do with the actual page. With actions you
are
>usually trying to do something like manipulate data... or something to
that
>effect. By having the action seperate from the page... it makes things a
lot
>simpler. Not only that, but you can have multiple front ends to the same
>action.
>3) Layout and navigation should be as reusable as possible
>4) Security should be easy to use, but effective. For example... to
require
>authentication on a page, you just extend the SecurityMixin before
anything
>else... and security is handled for you. (I will eventually make this work
>for actions too.)

There's hope. I achieve 1, 3, 4 with Webware, Cheetah, and logic  in
Page.py. I used to have 2 until I switched over to FunFormKit, where button
actions have nothing to do with the actions that Page implements.

I do 4 by setting a servlet level attribute to indicate whether security is
to be enforced. The Page base class handles all the security checks, and
redirection to a login page if needed.

Sounds like you're trying to implement an MVC system. PSP isn't so good for
this (at least based on my needs). Cheetah is better in this regard. At one
time, I implemented the same basic test site in PSP, straight servlet form,
and Cheetah. Of the three, Cheetah proved to be best at supporting a pure
MVC architecture.

...Edmund.



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

Reply via email to