At 3:03 PM -0500 2/19/05, David G. Friedman wrote:
Joe,
Your comment on testing CoR (Struts v1.3 or struts-chains) interests me.
How would that be done? Do you suggest JUnit, TestNG, or something else? sI
looked a little at StrutsTestCase and something about it bothers me, but
what I can't exactly
Joe,
Your comment on testing CoR (Struts v1.3 or struts-chains) interests me.
How would that be done? Do you suggest JUnit, TestNG, or something else? sI
looked a little at StrutsTestCase and something about it bothers me, but
what I can't exactly identify.
> public User getUser() {
>return
I probably should have intimated more strongly that SomeInterface
could be Action. Helper could be Command/Chain, etc.
On Sat, 19 Feb 2005 10:31:26 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
>
> On Fri, 18 Feb 2005 15:44:18 -0500, Rick Reumann
> > I'm wondering if you
> > could do something
On Fri, 18 Feb 2005 15:44:18 -0500, Rick Reumann
> I'm wondering if you
> could do something like this in a Command...
>
> public boolean execute(Context context) throws Exception{
>
> context.setAttribute("someList",someList);
> ...
> }
>
> and then from a JSP be able to somehow have
Obviously it's tough not to be too academic when you're not actually
cutting code, but the general tack I like to take is to wrap those
dependencies in classes of my own. So, in this case:
someDispatchMethod(...) {
(User)request.getSession().getAttribute("user");
you could instead have arranged
Joe Germuska wrote the following on 2/19/2005 11:56 AM:
The biggest gain I would
see out of it would be a further step towards reducing dependencies on
the HTTP API, which, despite your skepticism ;-) I think is a worthy
goal in itself.
Oh trust me, I'm all for it reducing dependency on the HTTP
At 11:49 PM -0500 2/18/05, Rick Reumann wrote:
Joe Germuska wrote the following on 2/18/2005 5:37 PM:
Well, I think you're blurring things here. When I talk about
"http-free" components, I'm talking about your business logic, not
your controllers (actions or commands).
But for most developers, t
Joe Germuska wrote the following on 2/18/2005 5:37 PM:
Well, I think you're blurring things here. When I talk about
"http-free" components, I'm talking about your business logic, not your
controllers (actions or commands).
But for most developers, the business logic usually is already self
cont
I think using commons-chain is a very cool idea, I just think the
reality is you'll end up still seeing much use of the
ServletActionContext from within the Command objects which goes
against your comment that you'll be able to write "http-free"
components as the chain events. I don't really se
Joe Germuska wrote the following on 2/18/2005 2:42 PM:
The ActionContext interface defines three maps, requestScope,
sessionScope, and applicationScope. We decided that these were
logically relevant to any Struts application, regardless of the
request/response API. Thus, as long as you're usin
To summarize my question, what if you need to stuff different things
into the Request/Session based on things that happen in chains like
B_chainEvent and C_chainEvent?
The problem I see is many times you'll be stuck in the middle of a
chain cycle and you then need to interact with Request or Se
Since this is a theoretical discussion, maybe stating some of the
basics regarding HTTP would not be unwelcome.
1. WEB MVC STRUCTURE: The difference between standalone and web
applications in relationship to the MVC framework is that standalone
applications have components on screens which commun
12 matches
Mail list logo