-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(ROTFL... and again I forget to send the email to the mailing list...)

On Sunday 12 January 2003 07:45 pm, Edmund Lian wrote:
> 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.

Actually... if I could get includeURL and forward working right... Everything
would already be working =)

> 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.

*nods* Actually the security part already works pretty well. The only real
issue is when a includeURL is used right after a forward... and the directory
structure has changed. (which goes back to includeURL and forward working
right *grins*)

> Sounds like you're trying to implement an MVC system. PSP isn't so good for

Yuppers.  Not specifically MVC... but a variation on MVC designed around web
applications.

http://jakarta.apache.org/turbine/turbine-2/index.html
has more information on this. See both the Model 2+1 stuff, plus the pull
model.

> 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.

Could you give me an example of a context-wide master template in cheetah? I
assume this acts somewhat like my BaseLayout?

I would still like to get includeURL and forward working properly... but I
would LOVE to replace the layout stuff (along with the general pages) with
cheetah if it means I dont have to compile the pages every time I made a
change.

On Sunday 12 January 2003 07:33 pm, Edmund Lian wrote:
> In the end, I just avoided the problem by using redirects. But redirects
> don't resolve URLs they way Luke (and I) expected. I just wrote my own URL
> normalizer and wrapped it around .response().sendRedirect()

Part of the reason why I dont use an external redirect, is so I can pass data
from one servlet to another on a per request basis. For example... passing
error information from my login action to the login page.

Unless I am missing something... the only other ways to handle this would be:

1) Pass the information through the url.
2) Pass the information through the session.

Option 1 I dont like very much. I hate sending stuff to the user when I don't
need to.

Option 2 works a bit better. However I see a couple problems with this
route...

The page would have to delete the data from the session. Which is not a huge
problem... but means I would have to remember to do this every time I wanted
to pass temp information along in this fassion.

If for some reason the user does not end up at the requested page.... the
 temp data stays in the session until the user finally visits the right page
 again. Of course this is not a huge problem... and might even be preferable
 in some situations. But it does add one more thing to worry about when
 trying to debug.

Maybe I am missing something?

On Sunday 12 January 2003 06:48 pm, Edmund Lian wrote:
> I've got a pretty complex application underway with Webware, Cheetah and
> (just recently added) FunFormKit. I've never noticed any rough edges in
> Webware or Cheetah.

I guess I should have been a bit more specific about the rough edges =)

Like I said, I really do like Webware... and things like MiddleKit are just
awesome IMHO. (It was VERY easy to get my security classes up and working for
example). However.. I have been constantly banging my head against my desk
with the includeURL and forward stuff =)



eeps... this turned into a really long reply .. hehe
Anyways... thanks for takeing the time to talk to be about this stuff guys =)

- - --
Luke Holden
eBI Solutions
Main: (949) 387-5182
Email: [EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Ij/73q5xXfLZTQkRAjYvAKC4gsLxAqqc5yvOWjf6e74FNmwmxACfY+8n
DnaYx8CjUMxBGEUod9w+RKI=
=r1Hw
-----END PGP SIGNATURE-----



-------------------------------------------------------
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