import java.text.SimpleDateFormat;

解决方案 »

  1.   

    不行啊..Note: sun.tools.javac.Main has been deprecated.
     Missing term.
          pageContext.write(_jsp_string0, 0, _jsp_string0.length);
                                                                  ^
    ';' expected.
          pageContext.write(_jsp_string0, 0, _jsp_string0.length);
                                                                  ^
    Invalid expression statement.
          import java.text.SimpleDateFormat;
      

  2.   

    <%@ page import ="java.text.SimpleDateFormat" %>
    SimpleDateFormat format = new SimpleDateFormat("yyyy\u00c4\u00eaMM\u00d4\u00c2dd\u00c8\u00d5");format好像是关键字,换成别的试试看。
    SimpleDateFormat fm = new SimpleDateFormat("yyyy\u00c4\u00eaMM\u00d4\u00c2dd\u00c8\u00d5");
      

  3.   

    <%@ page import ="java.text.SimpleDateFormat" %>
    SimpleDateFormat format = new SimpleDateFormat("yyyy-mm-dd");
      

  4.   

    <%@ page import ="java.text.SimpleDateFormat" %>
    <%
    SimpleDateFormat format = new SimpleDateFormat("yyyy-mm-dd");
    %>