On Fri, 5 Jul 2002, Xiaogang Cao wrote:

> Date: Fri, 5 Jul 2002 10:07:33 +0800
> From: Xiaogang Cao <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: Will Servlet Filter replace servlet as Controller in Struts
>     framework?
>
> Hi, there:
>     In SunOne meeting, there is a presentation
> (http://servlet.java.sun.com/javaone/resources/content/sf2002/conf/sessions/
> pdfs/1208.pdf) saying Filter will replace Servlet in some senario,
> especially when be used as controllers in an MVC style application.
>  Actually Struts is the most famous MVC style web application framework, so,
> can anyone tell me are you using Filter as controller, or are you going to
> do in this way? any plan?
>

Filters are really cool, and would make a very interesting technology to
use as the controller in an MVC framework like Struts.  The only problem
is that they require a Servlet 2.3 platform to run on.  For Struts 1.1 at
least, we need to continue supporting Servlet 2.2 environments, so the
controller will remain a servlet at least for that rev.

The developers haven't formally discussed or decided on what happens next
(we're concentrating on gettting 1.1 out first), but I would consider it
pretty likely that a next major version of Struts would declare Servlet
2.3 (and JSP 1.2) as prerequisites.  That will let us also integrate the
JSP Standard Tag Library (JSTL) 1.0 that was just released, as well as
JavaServer Faces (currently under development in JSR-127).  Both of those
libraries have 2.3/1.2 dependencies, so we'd need to have the same base
platform if we want to utilize them.

Given that we make the 2.3 decision, I think it's very worthwhile looking
at how the controller in Struts is put together, and consider at least an
alternative implementation based on filters.

> Best Regards.
> Xiaogang Cao.

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to