logged bug #394

the following occurs only under 1.4.7

I created two simple servlets.

Servlet1 & Servlet2

One simply creates a link to the other one.

When I run the first servlet like so
http://host/servlet/com.sequenet.test.servlet.Servlet1 and click on the link
to the second servlet Orion simply runs the first servlet again.

code follows

Servlet #1

package com.sequenet.test.servlet;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

/**
 * Title:        Main Project
 * Description:  This is my main project.
 * Copyright:    Copyright (c) 2001
 * Company:      Sara Lee
 * @author Russ White
 * @version 1.0
 */

public class Servlet1 extends HttpServlet {
  public void init(ServletConfig config) throws ServletException {
    super.init(config);
  }

  public void service(HttpServletRequest request, HttpServletResponse
response)
      throws IOException, ServletException {
    response.setContentType("TEXT/HTML");
    response.getWriter().print("<html><head></head><body>"+
        "Servlet1<br><a href=\"com.sequenet.test.servlet.Servlet2\">"+
        "link to Servlet2</a>"+
        "</body></html>");
  }
}

Servlet #2

package com.sequenet.test.servlet;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

/**
 * Title:        Main Project
 * Description:  This is my main project.
 * Copyright:    Copyright (c) 2001
 * Company:      Sara Lee
 * @author Russ White
 * @version 1.0
 */

public class Servlet2 extends HttpServlet {
  public void init(ServletConfig config) throws ServletException {
    super.init(config);
  }

  public void service(HttpServletRequest request, HttpServletResponse
response)
      throws IOException, ServletException {
    response.setContentType("TEXT/HTML");
    response.getWriter().print("<html><head></head><body>"+
        "Servlet2<br><a href=\"com.sequenet.test.servlet.Servlet1\">"+
        "link to Servlet1</a>"+
        "</body></html>");
  }
}


Reply via email to