jsp中使用fckeditor2.5.1问题
kuzhu 2008-02-02 12:58:03 jsp中使用fckeditor2.5.1,放在虚拟目录的根目录下没问题可以正常显示,但放到一个子目录中就提示:
Unable to load tag handler class "com.fredck.FCKeditor.tags.FCKeditorTag" for tag "FCK:editor"
同时在Tomcat中报:
2008-2-2 12:52:12 org.apache.jasper.compiler.TldLocationsCache processWebDotXml
警告: Internal Error: File /WEB-INF/web.xml not found
使用fckeditor的jsp文件如下(就只是简单的测试):
=========这是放在虚拟目录的根目录下的文件===============================
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="WEB-INF/FCKeditor.tld" prefix="FCK" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'main.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<FCK:editor id="article" basePath="fckeditor/"
imageBrowserURL="fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
linkBrowserURL="fckeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
flashBrowserURL="fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
imageUploadURL="fckeditor/editor/filemanager/upload/simpleuploader?Type=Image"
linkUploadURL="fckeditor/editor/filemanager/upload/simpleuploader?Type=File"
flashUploadURL="fckeditor/editor/filemanager/upload/simpleuploader?Type=Flash">
</FCK:editor>
</body>
</html>
======================================================================
放到子目录的jsp文件就是把这个文件中的相对目录前都加了"..",如下:
====================放到子目录中的文件=======================================
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="../WEB-INF/FCKeditor.tld" prefix="FCK" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>poobBLog后台管理</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<FCK:editor id="article" basePath="../fckeditor/"
imageBrowserURL="../fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
linkBrowserURL="../fckeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
flashBrowserURL="../fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
imageUploadURL="../fckeditor/editor/filemanager/upload/simpleuploader?Type=Image"
linkUploadURL="../fckeditor/editor/filemanager/upload/simpleuploader?Type=File"
flashUploadURL="../fckeditor/editor/filemanager/upload/simpleuploader?Type=Flash">
</FCK:editor>
</body>
</html>
======================================================================================
请高手看看什么问题,急等中...