struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nitin M. Mandolkar" <nitinmandol...@gmail.com>
Subject Re: ActionServlet and RequestProcessor
Date Wed, 01 Nov 2006 18:26:14 GMT
Hay Chris

Good Logical reply.

Is RequestProcessor also help for mutiple modules under single web
application. Say i have a Web Application, Online Shoppe. This web
application is divded in to modules like

1. Billing Module
2. Order Placement Module
3. Order Processing Module
4. Admin Module

If yes, please tell me how.

ni3

On 11/1/06, Christopher Schultz <chris@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Nitin,
>
> Nitin M. Mandolkar wrote:
> > "The Actionservlet delegates the handling of a request to a
> > RequestProcessor object"  Previously this is job is done by
> > ActionServlet itself. Now it is pass on to RequestProcessor.
> >
> > I am not getting how it is going to help for web application development.
>
> If you wanted to override any of the functionality of the
> RequestProcessor, you can now just subclass the RequestProcessor and do
> whatever you want, instead of doing the same with the ActionServlet.
>
> Perhaps it is no more or less convenient than it was in the past, but
> the logical separation of duties (RequestProcessor is a better
> abstraction than the ActionServlet) makes better sense, at least to me.
>
> Also, if you change servlets (say, from ActionServlet to
> MyOverriddenActionServlet), then you have to configure your servlet in
> web.xml. I think you use struts-config.xml to configure the
> RequestProcessor to use. Not that it makes much of a difference.
>
> If you never messed with ActionServlet in the past, then you probably
> aren't going to mess with RequestProcessor right now.
>
> Just trust that the Struts team thought it was the right move to make,
> and the change can be safely ignored if the change doesn't affect you.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFSOMJ9CaO5/Lv0PARAsu5AKCd+aP7J1kHfTY+P5ePJK6Z8fI25ACeItJ0
> 2rOeadqOW7NPLgTLdZki0pY=
> =4FCH
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message