common.jsp
内容如下:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String appPath = request.getContextPath();
%>
为什么会提示 错误:
Multiple annotations found at this line:
- String cannot be resolved to a type
- The method getContextPath() from the type HttpServletRequest refers to the missing type String
内容如下:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String appPath = request.getContextPath();
%>
为什么会提示 错误:
Multiple annotations found at this line:
- String cannot be resolved to a type
- The method getContextPath() from the type HttpServletRequest refers to the missing type String
解决方案 »
- 关于hibernate的DetachedCriteria查询的问题,求解,求围观
- 请帮忙解释<T>
- 页面request.getAttribute取对象的怪问题!
- 急!!!!需要把windows media player播放方式改为flash播放
- The value for the useBean class attribute ClinfoBean is invalid.
- ant 的使用,谁能给我讲讲DirSet,FileSet,Path-like Structures是怎么使用的?
- 求助!!!浏览器兼容性问题
- 为什么我在提交的时候,东西能够写道数据库里面去,但是就是打不开题是成功的页面呢?高手帮帮忙
- java servlet问题,其实这是一个HTML问题,请求帮助!
- mybatis 在insert中嵌套子查询
- 一个tomcat下的程序调用另一个tomcat下的程序
- 怎么把值从一个页面传给另一个页面
中加入
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
娃阿 没转换的哦
(2)如果在jsp页面仍然报错,则需要检查:window->preferences->java->Installed JREs,选择与(1)相同的jdk。另外window->java->compiler的jdk也要保持一致。详见:http://liugang-ok.iteye.com/admin/blogs/1397478