import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class MyServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType("text/plain");
PrintWriter out = res.getWriter();
res.setHeader("Content-Language", "es");
Locale locale = new Locale("es", "");
DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.LONG,
DateFormat.LONG,
locale);
fmt.setTimeZone(TimeZone.getDefault());
out.println("En Espa\u00f1ol:");
out.println("\u00a1Hola Mundo!");
out.println(fmt.format(new Date()));
}
}
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
MyServletName
MyServlet
MyServletName
*.htm
javax.servlet.jsp.jstl.fmt.timeZone
US/Central
database-driver
org.gjt.mm.mysql.Driver
database-url
jdbc:mysql://localhost/forum?user=forumuser
http://java.sun.com/jstl/fmt
/WEB-INF/fmt.tld
http://java.sun.com/jstl/fmt-rt
/WEB-INF/fmt-rt.tld
http://java.sun.com/jstl/core
/WEB-INF/c.tld
http://java.sun.com/jstl/core-rt
/WEB-INF/c-rt.tld
http://java.sun.com/jstl/sql
/WEB-INF/sql.tld
http://java.sun.com/jstl/sql-rt
/WEB-INF/sql-rt.tld
http://java.sun.com/jstl/x
/WEB-INF/x.tld
http://java.sun.com/jstl/x-rt
/WEB-INF/x-rt.tld
http://java.jeffheaton.com/taglib/jstl/forum
/WEB-INF/forum.tld
/tlt
/WEB-INF/taglib.tld