home Links Articles Books Past Meetings Photos SiteMap
The MDCFUG is sponsored by TeraTech. Visit us at www.TeraTech.com

Please send
comments/questions to

michael@
teratech.com

 

A Simple Java Servlet

    public class DateServlet extends HttpServlet

    {

    public void service( HttpServletRequest request, HttpServletResponse response )

    throws ServletException, IOException

    {

    response.setContentType( "text/html" );

    PrintWriter out = response.getWriter();

    out.print( "<html>" );

    out.print( "<head><title>Today</title></head>" );

    out.print( "<body>" );

    out.print( "<h1>Today is " + java.util.Calendar.getInstance().getTime() + "</h1>" );

    out.print( "</body>" );

    out.print( "</html>" );

    }

    }

Previous slide Next slide Back to first slide View graphic version


Home | Links | Articles | Past Meetings | Meeting Photos | Site Map
About MDCFUG | Join | Mailing List |Forums | Directions |Suggestions | Quotes | Newbie Tips
TOP

Copyright © 1997-2017, Maryland Cold Fusion User Group. All rights reserved.
< >