jsp:include ²ÎÊý´íÎó
ÎÒµÄjspÒ³ÃæÖÐÓÐÈçÏ´úÂ룺
show.jsp´úÂëÈçÏ£º
<jsp:include page="/admin/fckeditor.jsp">
<jsp:param name="name" value="content" />
<jsp:param name="height" value="290" />
<jsp:param name="width" value="630" />
<jsp:param name="neirong" value=" <%=article.get("content").toString() %>" />
</jsp:include>
fckeditor.jsp Ò³ÃæÈçÏ£º
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.fredck.FCKeditor.*" %>
<%
String name = request.getParameter("name");
String height = request.getParameter("height");
String width = request.getParameter("width");
String value = request.getParameter("neirong");
FCKeditor editor = new FCKeditor(request, name);
editor.setBasePath(request.getContextPath() + "/FCKeditor/");
editor.setToolbarSet("MyEditor");
editor.setHeight(height != null ? height : "500" );
editor.setWidth(width != null ? width : "650");
editor.setValue(value != null ? value : "");
out.println(editor.create());
%>
ΪʲôÎÒ·ÃÎÊshow.jspÒ³ÃæÊ±fckeditorûÓÐÏÔÊ¾ÄØ£¿²é¿´html
Ïà¹ØÎÊ´ð£º
ÎÒÊÇÓÃSTRUTS £¬×öÁËÒ»¸öJSPÒ³Ãæ£¬Ìá½»ºóûÓдæÈëÊý¾Ý¿â¡£
JSP´úÂëÈçÏ£º
aa.jsp´úÂë
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ taglib uri=" ......
<html><head><title>[@title]</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<script language='javascript'>
function diyCheck ......
ÀÏʦµÄÀíÓÉÊÇJSPµÄSSH¼Ü¹¹ÊÊÓÃÓÚ¿ìËÙ¿ª·¢£¬Á¬²Ù×÷Êý¾Ý¿â¶¼Ê¡ÁË¡£¡£¡£
ÎÒû¿´¹ýSSHµÄÊ飬²»ÖªµÀËý˵µÄɶÒâ˼¡£¡£¡£²»¹ýÆäʵÎÒÔÚ.netÖв»ÊÇÒ»Ñù¿ÉÒÔ²»Ö±½Ó²Ù×÷Êý¾Ý¿âô¡£¡£¡£
ÎÒì¶ÜµÄÊÇÓв»ÓбØÒª×ªµ½JSPÏ£¬¾ÍÎÒ¸ö ......
Ò»¸öÃû³Æ,ÐèÒªÊäÈëµÄ£¬Ò»¸öÏÂÀ²Ëµ¥£¬Ñ¡ÔñµÄ£¬¸ù¾ÝÕâÁ½¸ö½øÐÐÄ£ºý²éѯ¡£ÔÚ·þÎñÆ÷¶ËÎÞÂÛÊäÈëÓë·ñ£¬¶¼Äܵóö²éѯ½á¹û¡£
µ«ÊÇ·ÃÎʵϰ£¬Ö»ÓÐÔÚÊäÈëÃû³ÆµÄʱºò£¬ÔÙÑ¡ÔñÏÂÀ²Ëµ¥²ÅÄܲéѯ£¬Èô²»ÊäÈëÃû³Æ£¬Ö»Ñ¡ÔñÏÂÀ²Ëµ ......
ÎÒÓÐÒ»¶ÎJSPдµÄÍøÒ³£¬ÀïÃæÓÃÁË´óÁ¿µÄ±êÇ©£¬µ«ÊÇÎÒÏÖÔÚÏëÔÚÕû¸öÍøÒ³Íâ¼ÓÒ»¸ö´ó±í¸ñ£¬ÊÇÕû¸öÍøÒ³²»Õ¼ÂúÕû¸öÆÁÄ»£¬¶øÊǰ´ÕÕ¿í¶ÈΪ1003ÏñËØ¹Ì¶¨ÏÔʾ£¬µ«ÊÇÓñí¸ñ²»ÐУ¬ÇëÎÊÓ¦¸ÃÔõôŪ£¿
´úÂëÈçÏ£¬ÎÒÒ²²»ÖªµÀÓà ......