----- Original Message -----
From: "Jason Carreira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 4:19 PM
Subject: RE: [OS-webwork] ActionContext clarification


> Konstantin,
>
> I think the problem here is that you're not using the Model2 paradigm,
> which Webwork is based upon. It sounds like you are hitting the JSPs
> directly, whereas, in Webwork, we would hit foo.action, which (because
> *.action is mapped to the Webwork ServletDispatcher) would be handled by
> Webwork, and the ActionContext would be automatically set up for you and
> ready to access from ActionContext.getSession().
>

As Rickard has said the problem is that there is no initialized context,
however I would not go as far saying that Webwork is only for Model-2. In
the WW documentation it is clearly described to be for both Model-1 and
Model-2 (that part written by Rickard originally I think). And in a Model-1
approach you use the ww:action and ww:bean tags.
And I think one should not forget this because there are times when Model-1
can be useful, and you can scare away people by saying that it is only
Model-2 (because they feel it gets more "complicated" than they want it).
In Konstantin's case one solution could be to use a ww:action in the page.

Best regards,

Dick

[EMAIL PROTECTED]





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

Reply via email to