Eclipse导入的包JSP页面所有嵌入的java报错
Multipleannotationsfoundatthisline:-ThemethodsetCharacterEncoding(String)fromthetypeS...
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);}%> 展开
- 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);}%> 展开
2014-11-14
展开全部
是不是jar包有问题,看看那个jar包有没有出错
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询