2 qq 31634593 qq_31634593 于 2016.02.03 10:50 提问

问一个关于百度euditor编辑器jsp错误问题

config配置文件中是
//为编辑器实例添加一个路径,这个不能被注释
UEDITOR_HOME_URL: URL

    // 服务器统一请求接口路径
    , serverUrl: "/ueditor/jsp/controller.jsp"

jsp文件:
<%@ page language="java" contentType="text/html; charset=UTF-8"
import="com.baidu.ueditor.ActionEnter"
pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%

request.setCharacterEncoding( "utf-8" );
response.setHeader("Content-Type" , "text/html");

String rootPath = application.getRealPath( "/" );

out.write( new ActionEnter( request, rootPath ).exec() );

%>
点击图片上传的时候显示没有配置正确,并且后台报错
严重: Servlet.service() for servlet [jsp] in context with path [] threw exception [Unable to compile class for JSP:

An error occurred at line: 14 in the generated java file
Only a type can be imported. com.baidu.ueditor.ActionEnter resolves to a package

An error occurred at line: 12 in the jsp file: /ueditor/jsp/controller.jsp
ActionEnter cannot be resolved to a type
9:

10: String rootPath = application.getRealPath( "/" );
11:

12: out.write( new ActionEnter( request, rootPath ).exec() );
13:

14: %>

求大神帮忙解决,实在是愁死我了,之前没弄过这玩意

2个回答

devmiao
devmiao   Ds   Rxr 2016.02.04 21:57
zps12526
zps12526   2017.12.15 19:26

图片说明

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!