Multiple annotations found at this line:
- The method setCharacterEncoding(String) from the type ServletRequest refers
to the missing type String
- The method setCharacterEncoding(String) from the type ServletRequest refers
to the missing type String
- The type java.io.UnsupportedEncodingException cannot be resolved. It is
indirectly referenced from required .class files
- The type java.io.UnsupportedEncodingException cannot be resolved. It is
indirectly referenced from required .class files
<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%><%!private String get(Calendar c,int field){ int value = c.get(field); if(value<10){ return "0"+value; } return String.valueOf(value);}//获取时间private String getTime(){ Calendar now = Calendar.getInstance(); return get(now,Calendar.HOUR_OF_DAY)+":"+get(now,Calendar.MINUTE)+":"+ get(now,Calendar.SECOND);}%>
不行,
追答重新下个正确jar包重新导入下看看!!
本回答被网友采纳