Sorry, The examples I sent you were for testing just  servlet chaining.
This itself appears to be broken.
The problem I see is the the Request parameters are available only to the
first servlet in the chain. The second servlet
does not get the request parameters.  On further testing I saw that the
query string is preserved in the second servlet but the
getParameter() call does not  work.

In my original application I am actually using mime types to chain servlets.
The chaining itself works in the sense the correct servlet is called based
on the content type set. However if I try to acces the parameters in the
second servlet I do not see them I will try to rig up a test case and send
it to you tomorrow.


Thanks
naveen
----- Original Message -----
From: Scott Stirling <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 25, 2000 10:42 PM
Subject: RE: Mime Type chaining does not work in Jrun3.0??


> The examples you've provided aren't examples of MIME type chaining by
> themselves.  You've sent two virtually identical servlets that don't
appear to
> depend on any particular MIME type.
>
> I tested MIME type chaining today pretty extensively and it actually works
fine.
> MIME type chaining is when you define MIME type/servlet associations
(mapping
> servlets based on MIME types instead of URL prefixes or file extensions)
in
> JRun.  You can do this by hand editing the configuration files or via the
JMC.
> The JMC will create entries in the webapp.properties for your web app,
which
> configure a built-in servlet called mime-servlet.  You can get servlets to
chain
> based on MIME type in this way.  How did you configure your MIME type
chaining
> with your examples?  I am thinking it's more of a configuration problem
than a
> bug.  Please provide the relevant portion(s) of your
> local.properties/webapp.properties/web.xml.
>
> Scott Stirling
>
>
> > -----Original Message-----
> > From: Naveen Shankar [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 25, 2000 12:38 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Mime Type chaining does not work in Jrun3.0??
> >
> >
> > Scott,
> >     Am attaching the 2 Java files. If you invoke them individually with
> > parameters You will see the Parameters displayed. However if you chain
'em
> > then you see the parameters displayed for the first servlet in the chain
and
> > not for the second one.
> >
> > Naveen
> > ----- Original Message -----
> > From: "Scott Stirling" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, July 23, 2000 6:44 PM
> > Subject: RE: Mime Type chaining does not work in Jrun3.0??
> >
> >
> > > This may be a bug. I noticed a similar problem Friday and am just
reading
> > your
> > > email now.  Do you have a test case with a snippet of your
> > webapp.properties?
> > >
> > > Scott Stirling
> > >
> > > > -----Original Message-----
> > > > From: Naveen Shankar [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, July 18, 2000 2:17 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Mime Type chaining does not work in Jrun3.0??
> > > >
> > > >
> > > > Hi,
> > > >     It appears that the mime-type chaining behaves differently in
> > Jrun3.0.
> > > > Earlier  in JRUN 2.3.3 I could chain servlets by setting the
mimetype in
> > > > mimetypeservlets.properties. And the servlet in the chain would
inherit
> > all
> > > > the request parameters.
> > > > But now in JRUN3.0 it looks like only the first servlet in the chain
> > > > inherits the request parameters. These parameters are not there on
the
> > > > second servlets request object. Is there a workaround for this??
> > > > Appreciate any help.
> > > >
> > > > Thanks
> > > > Naveen
> > >
>
> >filename="chain2.java"
> >
> > import java.io.*;
> > import java.util.*;
> > import javax.servlet.*;
> > import javax.servlet.http.*;
> >
> >  public class chain2 extends HttpServlet
> >  {
> >    OutputStream out = null;
> >    PrintWriter  rep = null;
> >
> >  public void init(ServletConfig config)throws ServletException
> >  {
> >     super.init(config);
> >  }
> >
> >
> >  public void doGet (HttpServletRequest req, HttpServletResponse res)
> >  throws ServletException, IOException
> >  {
> >        String resultType = req.getParameter("resultType");
> >        if (resultType == null)
> >        {
> >           resultType = "text/html";
> >        }
> >        res.setContentType(resultType);
> >
> >        PrintWriter out = res.getWriter();
> >
> >        out.println("<html><body>Hi there from chain2<br>");
> >
> >        Enumeration enum = req.getParameterNames();
> >        while (enum.hasMoreElements())
> >        {
> >           String name  = (String)enum.nextElement();
> >           String value = req.getParameter(name);
> >           out.println("<br>["+name+"]=["+value+"]");
> >        }
> >        out.println("</body></html>");
> >  }
> >
> > public void destroy ()
> > {
> > }
> >
> > }
> >
> >
> >filename="chain1.java"
> >
> > import java.io.*;
> > import java.util.*;
> > import javax.servlet.*;
> > import javax.servlet.http.*;
> >
> >  public class chain1 extends HttpServlet
> >  {
> >    OutputStream out = null;
> >    PrintWriter  rep = null;
> >
> >  public void init(ServletConfig config)throws ServletException
> >  {
> >     super.init(config);
> >  }
> >
> >
> >  public void doGet (HttpServletRequest req, HttpServletResponse res)
> >  throws ServletException, IOException
> >  {
> >        String resultType = req.getParameter("resultType");
> >        if (resultType == null)
> >        {
> >           resultType = "text/html";
> >        }
> >        res.setContentType(resultType);
> >
> >        PrintWriter out = res.getWriter();
> >
> >        out.println("<html><body>Hi there from chain1<br>");
> >
> >        Enumeration enum = req.getParameterNames();
> >        while (enum.hasMoreElements())
> >        {
> >           String name  = (String)enum.nextElement();
> >           String value = req.getParameter(name);
> >           out.println("<br>["+name+"]=["+value+"]");
> >        }
> >        out.println("</body></html>");
> >  }
> >
> > public void destroy ()
> > {
> > }
> >
> > }
>
> --------------------------------------------------------------------------
----
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.

------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to