Hi Eugen,

Thanks for the post. Filtering ideas as you mention have been discussed before
in relation to the Servlet API, and is an idea we'd like be considering
strongly for the next revision of the specification. There is a good knowledge
base amongst different vedors about how to do this, so I'm hoping we can all
come up with a good solution.

>   It is possible to add API to registering filters (or just add to
> servlet engine config).

Another idea that has been proposed in this area to be able to configure
filters on a per web application basis and bundle them in with the WAR,
configured, perhaps with ordering the the deployment descriptor. For filtering
every request into the web server or outcoming response, the same mechanism
could be reused on the default context.

>   All filters must implement this interface:
>
> public interface filter {
>   HttpServletRequest requestFilter( HttpServletRequest req);
>   HttpServletResponse responseFilter( HttpServletResponse res);
> }


Would an interface of this type allow the filter, for example, to examine the
request when deciding how to filter a response ? An example would be where the
filter would need to know what kind of browser (e.g. WML capable browser) had
made the request in order to decide how to transform the response.

Am cc-ing servlet-interest cos I know a lot of folks are interested in this...

Thanks

- Danny

>   Filter can change request and response objects (parameters and
> properties) and return modified to servlet engine. Also servlet can add
> some Attributes to request.
>
>   Any comments?
>
>   Eugen Kuleshov.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to