qq_31634593 2016-02-03 02:50 采纳率: 0%
浏览 7298

问一个关于百度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 2016-02-04 13:57
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 聚类分析或者python进行数据分析
  • ¥15 如何用visual studio code实现html页面
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?