tasks on java

tasks on java

View Answers

December 13, 2008 at 12:56 AM

Hi friend,

Code for print "Hello World" in Servlet :

"HelloWorld.java"

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet{
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException,IOException{
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
pw.println("<html>");
pw.println("<head><title>Hello World</title></title>");
pw.println("<body>");
pw.println("<h1>Hello World</h1>");
pw.println("</body></html>");
}
}

"web.xml"

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">; -->

<web-app>
<servlet>
<servlet-name>Hello</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Hello</servlet-name>
<url-pattern>/HelloWorld</url-pattern>
</servlet-mapping>
</web-app>

For read more information,Examples and Tutorials on Servlet visit to :

http://www.roseindia.net/servlets/HelloWorld.shtml

Thanks









Related Tutorials/Questions & Answers:
tasks on java - JSP-Servlet
tasks on java  hi all, i am a beginner in java language ,i would like to practice some tasks in java..i have an idea about servlets, how to write code .so please can anyone forward a site which contains tasks on java
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.82.0 is released. Learn to use stepfunctions-tasks version 1.82.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.82.0 ) in their Java project... - stepfunctions-tasks version 1.82.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Advertisements
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.83.0 is released. Learn to use stepfunctions-tasks version 1.83.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.83.0 ) in their Java project... - stepfunctions-tasks version 1.83.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.84.0 is released. Learn to use stepfunctions-tasks version 1.84.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.84.0 ) in their Java project... - stepfunctions-tasks version 1.84.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.85.0 is released. Learn to use stepfunctions-tasks version 1.85.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.85.0 ) in their Java project... - stepfunctions-tasks version 1.85.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.86.0 is released. Learn to use stepfunctions-tasks version 1.86.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.86.0 ) in their Java project... - stepfunctions-tasks version 1.86.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.87.0 is released. Learn to use stepfunctions-tasks version 1.87.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.87.0 ) in their Java project... - stepfunctions-tasks version 1.87.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.87.1 is released. Learn to use stepfunctions-tasks version 1.87.1 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.87.1 ) in their Java project... - stepfunctions-tasks version 1.87.1 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.88.0 is released. Learn to use stepfunctions-tasks version 1.88.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.88.0 ) in their Java project... - stepfunctions-tasks version 1.88.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.89.0 is released. Learn to use stepfunctions-tasks version 1.89.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.89.0 ) in their Java project... - stepfunctions-tasks version 1.89.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.90.0 is released. Learn to use stepfunctions-tasks version 1.90.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.90.0 ) in their Java project... - stepfunctions-tasks version 1.90.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.90.1 is released. Learn to use stepfunctions-tasks version 1.90.1 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.90.1 ) in their Java project... - stepfunctions-tasks version 1.90.1 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.91.0 is released. Learn to use stepfunctions-tasks version 1.91.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.91.0 ) in their Java project... - stepfunctions-tasks version 1.91.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.92.0 is released. Learn to use stepfunctions-tasks version 1.92.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.92.0 ) in their Java project... - stepfunctions-tasks version 1.92.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.93.0 is released. Learn to use stepfunctions-tasks version 1.93.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.93.0 ) in their Java project... - stepfunctions-tasks version 1.93.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.94.0 is released. Learn to use stepfunctions-tasks version 1.94.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.94.0 ) in their Java project... - stepfunctions-tasks version 1.94.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.94.1 is released. Learn to use stepfunctions-tasks version 1.94.1 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.94.1 ) in their Java project... - stepfunctions-tasks version 1.94.1 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.95.0 is released. Learn to use stepfunctions-tasks version 1.95.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.95.0 ) in their Java project... - stepfunctions-tasks version 1.95.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.95.1 is released. Learn to use stepfunctions-tasks version 1.95.1 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.95.1 ) in their Java project... - stepfunctions-tasks version 1.95.1 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.95.2 is released. Learn to use stepfunctions-tasks version 1.95.2 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.95.2 ) in their Java project... - stepfunctions-tasks version 1.95.2 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.96.0 is released. Learn to use stepfunctions-tasks version 1.96.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.96.0 ) in their Java project... - stepfunctions-tasks version 1.96.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.97.0 is released. Learn to use stepfunctions-tasks version 1.97.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.97.0 ) in their Java project... - stepfunctions-tasks version 1.97.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.98.0 is released. Learn to use stepfunctions-tasks version 1.98.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.98.0 ) in their Java project... - stepfunctions-tasks version 1.98.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.99.0 is released. Learn to use stepfunctions-tasks version 1.99.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.99.0 ) in their Java project... - stepfunctions-tasks version 1.99.0 in Java projects. Follow the step by step... of stepfunctions-tasks released The developers of   software.amazon.awscdk
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.100.0 is released. Learn to use stepfunctions-tasks version 1.100.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.100.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.100.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.101.0 is released. Learn to use stepfunctions-tasks version 1.101.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.101.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.101.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.102.0 is released. Learn to use stepfunctions-tasks version 1.102.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.102.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.102.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.103.0 is released. Learn to use stepfunctions-tasks version 1.103.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.103.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.103.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.104.0 is released. Learn to use stepfunctions-tasks version 1.104.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.104.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.104.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.105.0 is released. Learn to use stepfunctions-tasks version 1.105.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.105.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.105.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.106.0 is released. Learn to use stepfunctions-tasks version 1.106.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.106.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.106.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.106.1 is released. Learn to use stepfunctions-tasks version 1.106.1 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.106.1 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.106.1 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.107.0 is released. Learn to use stepfunctions-tasks version 1.107.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.107.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.107.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.108.0 is released. Learn to use stepfunctions-tasks version 1.108.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.108.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.108.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.108.1 is released. Learn to use stepfunctions-tasks version 1.108.1 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.108.1 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.108.1 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.109.0 is released. Learn to use stepfunctions-tasks version 1.109.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.109.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.109.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.110.0 is released. Learn to use stepfunctions-tasks version 1.110.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.110.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.110.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.110.1 is released. Learn to use stepfunctions-tasks version 1.110.1 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.110.1 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.110.1 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.111.0 is released. Learn to use stepfunctions-tasks version 1.111.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.111.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.111.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.144.0 is released. Learn to use stepfunctions-tasks version 1.144.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.144.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.144.0 in Java projects. Follow the step... of stepfunctions-tasks released The developers of  
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.112.0 is released. Learn to use stepfunctions-tasks version 1.112.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.112.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.112.0 in Java projects. Follow the step...-tasks version 1.112.0 java library in your project. ADS_TO_REPLACE_2 Now you
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.152.0 is released. Learn to use stepfunctions-tasks version 1.152.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.152.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.152.0 in Java projects. Follow the step...-tasks version 1.152.0 java library in your project. ADS_TO_REPLACE_2 Now you
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.153.0 is released. Learn to use stepfunctions-tasks version 1.153.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.153.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.153.0 in Java projects. Follow the step...-tasks version 1.153.0 java library in your project. ADS_TO_REPLACE_2 Now you
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.153.1 is released. Learn to use stepfunctions-tasks version 1.153.1 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.153.1 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.153.1 in Java projects. Follow the step...-tasks version 1.153.1 java library in your project. ADS_TO_REPLACE_2 Now you
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.154.0 is released. Learn to use stepfunctions-tasks version 1.154.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.154.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.154.0 in Java projects. Follow the step...-tasks version 1.154.0 java library in your project. ADS_TO_REPLACE_2 Now you
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.155.0 is released. Learn to use stepfunctions-tasks version 1.155.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.155.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.155.0 in Java projects. Follow the step...-tasks version 1.155.0 java library in your project. ADS_TO_REPLACE_2 Now you
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.151.0 is released. Learn to use stepfunctions-tasks version 1.151.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.151.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.151.0 in Java projects. Follow the step...-tasks version 1.151.0 java library in your project. ADS_TO_REPLACE_2 Now you
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.144.0 is released. Learn to use stepfunctions-tasks version 1.144.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.144.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.144.0 in Java projects. Follow the step...-tasks version 1.144.0 java library in your project. ADS_TO_REPLACE_2 Now you
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.138.2 is released. Learn to use stepfunctions-tasks version 1.138.2 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.138.2 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.138.2 in Java projects. Follow the step...-tasks version 1.138.2 java library in your project. ADS_TO_REPLACE_2 Now you
Maven dependency for software.amazon.awscdk - stepfunctions-tasks version 1.139.0 is released. Learn to use stepfunctions-tasks version 1.139.0 in Maven based Java projects
( software.amazon.awscdk - stepfunctions-tasks version 1.139.0 ) in their Java project...; software.amazon.awscdk - stepfunctions-tasks version 1.139.0 in Java projects. Follow the step...-tasks version 1.139.0 java library in your project. ADS_TO_REPLACE_2 Now you

Ads