JServ does not support Servlet chaining, for many good reasons. You can
however simulate it. Your ServletBlue, just connects to
http://localhost/ServletGen, get the data, do its conversions and return
the result.
There are other Servlet engines out there, that supports servlet
chaining, but you should know what you are doing.
If you are facing multiple processing phases (and not the trivial type
you are giving as an example) I would recommend you to investigate the
XML route, and in particular the brand new http://xml.apache.org. Cocoon
is the thing you are looking for.
Niclas
Ludovic Maillet wrote:
> Hello !
>
> I want to configure my Apache (1.3.9)+ Jserv (JSDK2.0)to make chaining
> servlets !
> Is this possible ?
>
> For example:
> - ServletGen generate a HTML file with red texts
> - ServletBlue is able to change texts in html files from red to blue
> I want to configure Apache-JServ like this:
> if request is done to http://host/alias then :
> client request send to ServletGen
> response from ServletGen send as request to ServletBlue
> response from ServletBlue send to client
>
> An other question: can I apply a ServletFilter on a determined
> content-type ?
> For example: all response from server which contain
> content-type=text/html
> must be send to ServletFilter before to be sent to client
> Is this possible too ?
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]