Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Servlet Posted by skanhu on 30 Sept 2012 at 10:44 PM
import javax.servlet .*;
import java.io.*;
public class HelloworldServlet implements Servlet
{
public void Servlet(ServletRequest request, ServletResponse response) throws IoException, ServletException
{
response.setcontenttype( text/html );
printwriter out = response.getwriter() ;
out.println("<html>");
out.println("<body BGCOLOR=yellow>");
pout.println("<H1>HelloWorld</h1>");
pout.prinlnt("</body><html>");
out.close();
{
public void init(ServletConfig config) throws servletexception
{
}
public void destroy()
{
}
public string getServletInfo()
{
return null;
}
public ServletConfig getServletConfig()
{
return null;
}
}}}





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.