Total members 11892 |It is currently Mon Sep 16, 2024 9:52 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Using Tomcat server u can run servlets and JSP web applications.Here it is my first step in java web applications using servlets .

Code:
/*
* Test.java
*
* Created on January 27, 2007, 10:44 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package firstservelt;
import com.sun.corba.se.spi.activation.Server;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.*;

public class Test extends HttpServlet {
   
    /** Creates a new instance of Test */
   
     
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
    {
        resp.setContentType("text/html");
       PrintWriter out=resp.getWriter();
       
       out.println("");
       out.println("");
       out.println("Hello Codemiles is comming");
       out.println("");
    }
   
}




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Servelt Hello world I made by myself
 Hello World using JSP     -  
 JSF hello world     -  
 Hello World!     -  
 Need help about chatting application i made...     -  
 HTML Form i made     -  
 Get address of the page from which the request was made     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com