Hello,
What I am trying to do is to run a simple Servlet from a java class.
Actually I have a Servlet1 that is started from an html code through a post action. That servlet outputs some other html page but also calls a Java class. What I try to do now is to start a Servlet2 that outputs html code from that java class. I did:
URL url = new URL("http://localhost:8080/WebApplication/Servlet2");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
but the servlet2 is not opened in the browser even though i output in the proccessRequest method some html code.
Isn't the Servlet2 getting a request? Where i'm going wrong or what i'm missing?
Kind regards, Adriana