Hello all,
I have a question about the Servelet Methode init call.
Whenn I call a website e.g. http://bla/servlet/bla.MyServlet.
It will first run the init Methode of this Servlet and then the doPost
od doGet.
But how could I do this manual ?
I have servlets, that need a other Servervlet to be run first (in
background, otherwise i had done is with sendRedirect).
I must do somthing like

public class ServletB {
  public void init(ServletConfig config){
  if (ServletA isn't init){ <- i will test it with a varibale is set or
null
    ServletA test = new ServletA();
    test.init()
}

that won't work , but gives also no error back ?!

have someone an Idee ?

Plz wrote back,
thanks for inconvenience,
Michael


Reply via email to