Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚJSPÖÐÅäÖÃFCKeditor 2.6.4

1.FCKeditor ½éÉÜ
FCKeditor Õâ¸ö¿ªÔ´µÄHTML Îı¾±à¼­Æ÷¿ÉÒÔÈÃweb ³ÌÐòÓµÓÐÈçMS Word ÕâÑùÇ¿´óµÄ±à¼­¹¦ÄÜ£¬.FCKeditor Ö§³Öµ±Ç°Á÷ÐеÄä¯ÀÀÆ÷¡£
2£®×¼±¸¹¤×÷£º
»·¾³£ºwinddows XP¡¢tomcat6.0¡¢JDK1.6
ÏÂÔØ£º
1)£ºFCKeditor_2.6.4.zip
µØÖ·£ºhttp://nchc.dl.sourceforge.net/sourceforge/fckeditor/FCKeditor_2.6.4.zip
2)£ºfckeditor-java-2.4.1-bin.zip (JAVAÖ§³Ö°ü)µØÖ·http://nchc.dl.sourceforge.net/sourceforge/fckeditor/fckeditor-java-2.4.1-bin.zip
3)£ºslf4j-1.5.2.zip µØÖ· £ºhttp://www.slf4j.org/dist/slf4j-1.5.2.zip
3.°²×°£º
ÏÂÃæÒÔjspΪÀý£º
·Ö±ð½âѹ֮ºó£¬ÎÒÃÇ¿ÉÒԵõ½Ò»¸öfckeditorºÍfckeditor-java-2.4.1Á½¸öÎļþ¼Ð¡£fckeditorÎļþ¼ÐÏÂÊÇÐèÒªµ÷ÓõÄÒ³ÃæºÍjsÎļþµÈµÈ£¬Óи÷ÖÖ°æ±¾£¬ÎÞËùνÀ²£¬ÎÒÃÇÖ®ÐèÒªjsp¾Í¹»ÁË¡£½«Îļþ¼ÓÈ«²¿¸´ÖƵ½¹¤³ÌĿ¼Ïµȴýµ÷Óü´¿É¡£
×¢Ò⣺ÓеãÂé·³µÄÊǵ¼°üµÄÎÊÌâ¡£ÎÒÃÇÒ»¹²ÐèÒª5¸ö°ü£ºcommons-fileupload-1.2.1.jar£¬commons-io-1.3.2.jar£¬fckeditor-java-core-2.4.1.jar£¬slf4j-api-1.5.6.jar£¬slf4j-simple-1.5.6.jar»òslf4j-jdk14-1.5.6.jar¡£
ÉÏÃæÇ°Ëĸö°ü¶¼¿ÉÒÔÔÚfckeditor-java-2.4.1Îļþ¼ÐÏÂÃæÕÒµ½£¬µ«ÊǵÚÎå¸öÈ´ÒªÁíÍâÈ¥ÕÒ£¬ÕâµãÎҷdz£²»Àí½â£¬ÎªÊ²Ã´²»·ÅÔÚÒ»Æð¡£
Èç¹ûûÓеĻ°±àÒëʱ¾Í»á³öÏÖÈçÏ´íÎóÐÅÏ¢£º
ÑÏÖØ: Servlet /fckeditorDemo threw load() exception
java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
µ±È»°æ±¾»òÐí²»Í¬£¬ÒÔÉϵİ汾ÊǽØÖ¹2009-02-4µÄ×îа汾¡£Èç¹ûÏëÒª×îа汾£¬¿ÉÒÔÔÚslf4jµÄ¹ÙÍøhttp://www.slf4j.org/download.htmlϵ½¡£µ«ÊÇҪעÒ⣬½ØÖ¹µ½2009-2-4£¬slf4j¹Ù·½×îа汾ÊÇ1.5.6£¬µ«ÊÇfckeditorÌṩµÄslf4j-apiÈ´ÊÇ1.5.2°æ±¾£¬Èç¹ûÁ½¸ö°æ±¾²»Ò»ÑùµÄ»°£¬Ä㽫»áÔÚ¿ØÖÆ̨¿´µ½ÈçϵÄÏûÏ¢£º
ÑÏÖØ: Servlet /Java threw load() exception
java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class
org.slf4j.LoggerFactory
ËùÒÔǧÍòҪעÒâ°æ±¾Ò»ÖÂÎÊÌâ¡£Èç¹ûÄãʵÔÚ¾õµÃÏÂÔغÜÂé·³£¬ÄǾ͵½ÕâÀïÏÂÔØ°É£ºhttp://www.slf4j.org/download.html
4.ÅäÖÃ
1)ÔÚ¹¤³ÌĿ¼src/ÏÂн¨Ò»¸öÎļþfckeditor.properties£¬Ìí¼ÓÄÚÈÝ£º
connector.userFilesPath=UploadFile
connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl
ÆäÖеÚÒ»ÐÐΪÖØж¨ÒåÉÏ´«µÄÎļþ¼


Ïà¹ØÎĵµ£º

MyEclipse²»Ê¶±ðjspÒ³ÃæÖеÄhtml±ê¼Ç£¿

ÈçºÎÖªµÀ²»Ê¶±ðÁËÄØ£¿
MyEclipse--window--Preperences--MyEclipse--Files and Editors--XML--XML Catalog(Èô³öÏÖºìÉ«µÄ²æºÅ±íʾXMLʶ±ð²»ÁË)£»
н¨user_catalog.xml
£¨ÆäÖÐI:/Eclipse/CommonPlugins/DTD/ Ŀ¼Ï·ÅÖø÷ÖÖ´ÓÍøÉÏÏÂÔصÄdtdÎļþ£©
ÈçÏëÌí¼ÓеÄdtdÎļþ£¬Ð޸ĴËÅäÖÃÎļþ¼´¿É¡£
<?xml version="1.0" en ......

ÔÚJSPÀïµ÷ÓÃspring¹ÜÀíµÄbeanÈ¡µÃÊý¾Ý


Ò»£ºweb.xmlÅäÖÃ
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>
org.springframework.web.context.ContextLoaderServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<context-param>
<param-name>cont ......

jspѧϰ±Ê¼Ç2

JSPµÄ×¢ÊÍ
<%--........--%>
JSPÖ¸ÁîºÍJSP¶¯×÷£¨±ê×¼µÄJSP±êÇ©£©
JSPÖ¸ÁîµÄÓï·¨
<%@... ....%>
<%@include file="...."%> °üº¬Ö¸Á°üº¬Ö¸Áî»á½«Òª°üº¬µÄÎļþ´úÂëÔ­ÑùÊä³öµ½±¾Ò³Ã棨ÔÚ·­Òëʱ°Ñ°üº¬ÎļþµÄÄÚÈÝÒýÈë²¢ºÏ²¢£©£¬²»½øÐз­Ò룬fileÊôÐÔÖƶ¨Òª°üº¬µÄÎļþµÄÃû×Ö£¨×¢ÒâÒª°üº¬µÄÎļþµÄ·¾¶£©£ ......

jspѧϰ±Ê¼Ç3

×¢Ò⣺jsp:useBean¶¯×÷£¬ÓÃ±íµ¥ÎªBeanµÄÊôÐÔ¸³ÖµÊ±£¬Ò²¾ÍÊÇjsp:setProperty¶¯×÷Ö±½ÓÊÕÇëÇóÖÐ±íµ¥µÄÐÅϢΪʹÓõÄBeanµÄÊôÐÔ½øÐи³Öµ£¬Ò²¾ÍÊÇ˵jsp:useBeanºÍjsp:setProperty²»Äܹ»³öÏÖÔÚΪÕâ¸öBeanµÄÊôÐÔ¸³ÖµµÄform±íµ¥µÄÒ³ÃæÉÏ¡£
JSPµÄÒì³£´¦Àí
<%@page errorPage="xxx.jsp"%> Ö¸¶¨±¾Ò³Ãæ³öÏÖÒì³£ºóҪתµ½µÄÒ³Ãæ
& ......

´¿JSP·ÖÒ³´úÂëÖ®Mysql

//ÔËÐÐͼ:
//Á¬½Ó×Ö·û´®
String url="jdbc:mysql://localhost/"+dbName+"?user="+userName+"&password="+userPasswd;
Class.forName(driverName).newInstance();
Connection connection=DriverManager.getConnection(url);
Statement statement = connection.createStatement();
//ÿҳÏÔʾ¼Ç¼Êý
int PageSize ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ