==Page: <%@page contentType= ...%>
1. MIME tells how the webfile is handled by webserver. Defined by conf/web.xml:
<%@page contentType="application/msword%>
2. MIME tells the character set of this page: <%@page contentType=...%>
html file: http-equiv is required
<META http-equiv=Content-Type content="text/html;charset=gbk">
jsp file:
<%@page contentType="text/html;charset=GBK"%>
==Page: <%@page import= ...%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*,java.io.*%>
没有评论:
发表评论