Is there a Bug with java webserver 2.0 ?  I have been using java 1.1.x for
some time with the sevlet tag, whcih works fine.  Under JWS 2.0 however all
servlets on the same .shtml page seem to get the same parameters passed to
them .  Consider the following:

<servlet code=Test>
<PARAM NAME=Link Value=0>
</servlet>

<servlet code=Test2>
</servlet>


Servlet Test should get the parameter named Link while servlet Test should
not.  My experiments show that both servlets get the parameter "Link"  The
code for the test sevelts is based on the following with the class name
changed accordingly:

public class Test extends HttpServlet implements SingleThreadModel

 public void init(ServletConfig conf) throws ServletException {
  super.init(conf);
 }

 protected void doGet (HttpServletRequest req, HttpServletResponse res)
  throws ServletException, IOException
 {
  String Parameter="Goodbye";
  res.setContentType("text/html");
  PrintWriter out= res.getWriter();
  Parameter= req.getParameter("Link");
  System.out.println("Parameter :"+Parameter);
  out.print("<p>Parameter is"+Parameter+"</p>");
 }
}


Any help on this ?  Who do I report this to as a possible bug /

Thanks

Andy Cobley
[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