The Artima Developer Community
Sponsored Link

Web Services Forum
How to install Tomcat and how to run serlvets in tomcat

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
ravi kumar

Posts: 1
Nickname: markey
Registered: Feb, 2006

How to install Tomcat and how to run serlvets in tomcat Posted: Feb 22, 2006 2:11 AM
Reply to this message Reply
Advertisement
i am new to this forum and also new to Servlets. i have one servlets is follows

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>");
}
}


how can i run it in an tomcat . Can you anybody explain me step by step.

Topic: MQ Series Previous Topic   Next Topic Topic: Trouble with Axis and a simple web service.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use