这么简单的函数定义也能出错?JSP+TOMCAT....
<%@ page import="java.util.*,java.text.*" %>
<%
String get_time()
{
Date now = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
return formatter.format(now);
}
String now_time=new get_time();
out.print(now_time);
%>
TOMCAT总提示我说String get_time()这里出错?
不明白,请教...