On Fri, 19 Mar 1999, Phil Zimmerman wrote:

> I am trying to implement servlet chaining using JRun 2.2 and NES 3.5.1.
> I have one servlet that takes requests and directs them to an
> appropriate servlet for processing. I am triggering the servlet chain
> using the mime-type. In the logic flow of the application, the chaining
> works well for the first chained servlet. The next chained servlet that
> needs to be called fails. I've tested the mime types by switching the
> mime type each servlet is related to, and the same condition occurs.
>

How do you change (switch) mime-types?
The JSDK API states that setContentType() and getContentType()
belong to different classes: ServletRequest has getContentType(String) and
ServletResponse has the setContentType(String) so there is no API call to do
something like response.getContentType() or request.setContentType().

So the mime type you set to the response does not (must not) affect the
request's mime type wich I assume you used to trigger the first servlet.

Can you be more specific on how do you switch mime types?

Or try to use HttpSession.putValue(key, string_instead_of_mime_type) to
apply flow control.



Cezar Totth                             email:  [EMAIL PROTECTED]
                                        Fax:    (401) 220 33 95
Genesys Software Romania                Phone:  (401) 638 49 44
Stefan Furtuna 169, sect.6
cod 77171, Bucharest
Romania

___________________________________________________________________________
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