ÔÚJSPÖÐʹÓÃJS·½Ê½ÒýÓÃckeditor
×î½üÔÚ×Ô¼º×öµÄÏîÄ¿ÖÐÐèÒªÓõ½ÔÚÏß±à¼Æ÷,ÔÚÍøÉÏËÑÁËÏ£¬·¢ÏÖÁËckeditor£¬µ±È»ÍøÉÏÓкü¸ÖÖÔÚÏß±à¼Æ÷£¬²»ÖªµÀΪʲôѡÔñÁËckeditor,±¾À´´òËãÓÃFckeditorµÄ£¬µ«ÊÇ¿´µ½ÍøÉÏ»¹ÐèÒªµ¼ÈëºÃ¼¸¸öJAR°ü£¬»¹Òª½øÐÐÒ»¶ÑÅäÖã¬ÓеãÂé·³£¬±¾À´ÏîÄ¿ÖÐÒ²¾ÍÓÃһϣ¬»¹ÒªÄÇôÂé·³µØÈ¥ÅäÖá£
ÓÚÊÇÈ¥ckeditorÍøÕ¾ÏÂÔØÁË×îа汾µÄckeditor£¬ckeditorÊÇfckeditorµÄÏÂÒ»´ú°æ±¾£¬ÓÚÊÇ˳´ø°ÑfckeditorºÍckeditor¶¼ÏÂÔØÏÂÀ´²âÊÔÏÂÄĸö¸üºÃÓ᣾¹ý±È½Ï»¹ÊÇckeditorµÄÃż÷±È½ÏµÍ£¬Á½ÐдúÂë¾Í¸ã¶¨ÁË£¬µ«ÊÇÅäÖÃÁËfckeditorȴûÓÐÆð×÷Óã¬ÓÚÊǾÍÑ¡ÔñÁËckeditor£¬Ò²Ðí´ó¼Ò»¹ÊÇÓÃfckeditorµÄ±È½Ï¶à¡£²»¹ý¼ÈÈ»ckeditorÃż÷µÍÄǾÍ×ÔȻѡÔñckeditorÁË¡£
²»¶à·Ï»°ÁË£¬ÏÂÃæ¾ÍÀ´ËµÏÂckeditorµÄʹÓðɣ¡
ҪʹÓÃckeditor£¬µ±È»Ê×ÏȾÍÊÇÈ¥http://ckeditor.com/ (ckeditorÍøÕ¾)ÏÂÔØckeditorµÄѹËõ°ü£¬ÏÖÔÚ×îеÄÊÇckeditor_3.3.zip
ÏÂÔغó½«Ñ¹Ëõ°ü½âѹ£¬½«½âѹºóÎļþ¼ÐÖеÄckeditorÎļþ¼Ðcopyµ½×Ô¼ºµÄwebÏîÄ¿µÄWebRootĿ¼Ï¡£
´ò¿ªckeditorĿ¼£¬¿ÉÒÔ¿´µ½Îļþ¼Ð½á¹¹ÈçÏÂ
ckeditor
---_samples
---_source
---adapters
---images
---lang
---plugins
---skins
---themes
....
---ckeditor.js
---config.js
...
´Óÿ¸öÎļþ¼ÐºÍÿ¸öÎļþµÄÃû×ÖÎÒÃǾͿÉÒÔºÜÈÝÒ׿´³öËüÃǵÄ×÷Óã¬_samplesÎļþ¼ÐÏ·ŵÄ×ÔÈ»¾ÍÊǹ©ÎÒÃÇѧϰÈçºÎʹÓõÄÑùÀý³ÌÐòÁË¡£
Äõ½Ò»¸öÎÒÃÇÒÔǰûÓùýµÄ¶«Î÷£¬Ê×ÏÈÒª¿´µÄµ±È»¾ÍÊÇËü¸øµÄÀý×ÓÁË£¬Õâ¿ÉÒÔÈÃÎÒÃǶÔÕâ¸ö³ÌÐòÓиöÕûÌåµÄÁ˽Ⲣ¿ìËÙÕÆÎÕ¼òµ¥µÄʹÓ÷½·¨¡£
ÏëÒªÔÚJSPÒ³ÃæÖÐÒýÓÃckeditorÊǷdz£¼òµ¥µÄÒ»¼þÊ£¬Ç°ÃæÎÒÃÇÖ»ÒªÒѾ½«½âѹµÄckeditorÎļþ¼Ðcopyµ½WebRootĿ¼ÏÂÁË£¬Ö»ÐèÒªÔÚjspÎļþµÄ´úÂëÖÐÒª¼ÓÈëckeditorµÄλÖüÓÉÏÈçÏ´úÂ룬(±ÈÈçÎÒÃÇÒªÔÚÒ»¸öformÖÐʹÓÃckeditor)¡£
ÏÂÃæÔÚindex.jsp(±ÊÕß½¨µÄÒ»¸ö²âÊÔÒ³Ãæ)ÖÐÒýÓÃckeditor²¢²âÊÔ
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>
<%
String content=request.getParameter("editor1");
 
Ïà¹ØÎĵµ£º
¶ÔÓÚHTMÍøÒ³£¬¼ÓÈ룺
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<meta HTTP-EQUIV="expires" CONTENT="0">
È»ºó£¬jspÒ³ÃæÖмÓÈ룺
<%
response.setHeader("Cache-Control","no-store") ......
Ëæ׿¼ÊõµÄÈÕÐÂÔÂÒì £¬JSPµÄм¼ÊõÒ²²ã³ö²»ÇΪÁË·½Ãæ´ó¼ÒµÄѧϰÓ빤×÷£¬ÏÂÃ潫¼òµ¥µÄ½éÉÜÒ»ÏÂJSP¼Ü¹¹¡¢JSP¿ª·¢¹¤¾ß¡¢Web·þÎñÆ÷¼°Æäîñȱµã¡£
JSP¼Ü¹¹£º
struts£º Struts¸úTomcat¡¢TurbineµÈÖî¶àApacheÏîÄ¿Ò»Ñù£¬ÊÇ¿ªÔ´Èí¼þ£¬ÕâÊÇËüµÄÒ»´óÓŵ㣬ʹ¿ª·¢ÕßÄܸüÉ ......
Ê÷½Úµã×éºÏÄ£ÐÍ
package cn.com.jsnh.model.catalog;
public class TreeModel {
private String node;
private CatalogModel model;
public String getNode() {
return node;
}
public void setNode(String node) {
this.node = node;
}
public CatalogModel getModel() {
return model;
}
public void setMo ......
Ò»¡¢
ÔÚÒ»¸öÉè¼ÆÁ¼ºÃµÄWebÓ¦ÓÃÖУ¬¶¼»á×ÛºÏʹÓÃServletºÍJSP¼¼Êõ¡£Servlet¿ØÖÆÒµÎñÁ÷ת£¬JSPÔò¸ºÔðÒµÎñ´¦Àí½á¹ûµÄÏÔʾ¡£´Ëʱ£¬½«´óÁ¿Óõ½Öض¨Ïò¼¼Êõ¡£
¡¡¡¡Öض¨Ïò¼¼Êõ¿ÉÒÔ·ÖΪÁ½À࣬һÀàÊÇ¿Í»§¶ËÖض¨Ïò£¬Ò»ÀàÊ ......
Ò²ÐíºÜ¶à¸ßÊÖ¶¼²»Ï÷½â¾öÕâ¸öÎÊÌ⣬µ«ÊÇÎÒ¾õµÃ¶Ô³õѧÕßÀ´ËµÕâ¸öÎÊÌ⻹ÊÇÒªÑо¿Ò»»áµÄ£¬ËùÒԾͼǼÏÂÀ´ÁË¡£
ÎÊÌâÃèÊö£º
µ±ÄãÔÚEclipseµÄ³ÌÐòÖмÓÈëÒ»¸öJSPÎļþºó£¬Õû¸öProject »á±¨Ò»¸öÕâÑùµÄError.
ÎÊÌâÔÒò£º
ĬÈÏEclipseµÄ±àÒë»·¾³ÊÇJRE£¬¶øJREÊDz»´ø±àÒëÆ÷µÄ£¬Ö»ÓÐJDK²Å´ø±àÒëÆ÷¡£ËùÒÔ±ØÐë°ÑJDK×÷ΪÄãÏîÄ¿µÄInstalle ......