Paul Benedict wrote:
All good points. But do end points have to be singular?
Well, I suppose I could have been being too semantic... an endpoint
means a point at which something, typically a line, ends. A point,
AFAIK, is always singular.
Like I said, it's possible I was being too literal :)
I'm not sure I understand what your asking when you ask if end points
have to be singular... can you elaborate?
> I do not believe
I have invented any sort of unique design. I have employed actions in
actually a very similar fashion to how a portlet server would work.
That's an interesting point... I've done only a little bit with portlets
I admit, but as I understand it, a request is made to the server... one
URL is called in other words... ignoring AJAX and the like, what happens
is the portlet does its thing, and then the entire page, including all
portlets, re-render their markup based on their current state. My main
point here is that it's not a whole new request cycle for each portlet,
only for the one that was initially called. The portlet aggregator
essentially treats all the portlets as helper classes.
I think treating an Action like a helper class is fine, like I mentioned
before, I've done that frequently. But I've started, even in my own
apps where I do that, to ask the question: should they have been Actions
in the first place? In my case I say yes because they can also be
called individually. In your case though, that doesn't seem to be true,
so them being Actions is the part I'm not so sure about.
Additionally, I don't know exactly which project in Apache has done
this, but I know of a Struts/JSR-168 Portlet bridge. I think that's
pretty cool. It's the same concept: executing multiple actions and
aggregating output.
I never looked into that project, although I too remember hearing
something about it... I wonder though how its implemented... is it maybe
the client somehow making multiple requests, or are the Actions
forwarding to all the other Actions involved with the current page, or
is one Action basically using all the others as helpers? I don't know
the answer, but it'd be interesting to know how it was tackled there.
Paul
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
(2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]