Hi
i have created a new servlet. I have put the servlet (.class file-helloworld.class) in the directory c:\Lotus\domino\data\domino\servlet
(c:\lotus\domino\data being the data directory of the server)
Now i created servlets.properties file in c:\lotus\domino\data
directory.
content of which are – servlet.HelloWorld.code=HelloWorld
i use the URL – http:///servlet/HelloWorld
But i cannot run the servlet.
Please tell me what has to be done?
HelloWorld.java file is –
(compiled using domino jvm )
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>Hello World!</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Hello World!</h1>");
out.println("</body>");
out.println("</html>");
}
}
Thanks
Syed