Eclipse导入的包JSP页面所有嵌入的java报错

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包有问题,看看那个jar包有没有出错
温馨提示:答案为网友推荐,仅供参考
第1个回答  2014-11-14
应该是标签没有配置好。有时候有出错标志,直接复制再粘贴一下就没有了,或者关闭重新打开。追问

不行,

追答

重新下个正确jar包重新导入下看看!!

本回答被网友采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网