qq_31634593
qq_31634593
采纳率14.3%
2016-02-03 02: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条回答

  • zps12526 zps12526 4年前

    图片说明

    点赞 评论 复制链接分享
  • devmiao devmiao 5年前
    点赞 1 评论 复制链接分享

为你推荐