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

ÐÂÀËÔÚÏßhtmleditor jsp°æµÄʹÓà ¿É½áºÏstruts2

ÔÚÏßÍøÒ³±à¼­Æ÷ÖÐ×îÖøÃûµÄÊÇfckEditor£¬µ«ËûµÄ¹¦ÄÜÌ«È«ÃæÁË£¬¶øÇÒʹÓÃÆðÀ´Ò²²»ÊǺܷ½±ã¡£Ïà¶Ô¶øÑÔÐÂÀËhtmleditor¾Í±È½ÏÇåˬ£¬¶øÇÒʹÓüòµ¥¡£ÐÂÀ˲©¿ÍºÍÈËÈËÍøÈÕÖ¾Ó¦¸Ã¶¼ÊÇÓõÄÕâ¸ö¿Ø¼þ¡£µ«ÊÇhtmleditor×î¶àµÄÊÇasp°æ±¾£¬ÔÚÍøÕ¾jsp°æ±¾Ê®·ÖÏ¡ÉÙ¡£Í¨¹ý²éÕÒÎÒÕÒµ½Ò»¸ö¿ÉÒÔʹÓõÄÐÂÀËhtmleditor jsp°æ±¾¡£ÏÂÔصØַΪhttp://download.csdn.net/source/1122169£¬ÔÚÕâÀïÏȸÐлohmydog1µÄ·ÖÏí¡£Í¬Ñù´ó¼ÒÒ²¿ÉÒÔÈ¥ÎÒµÄ×ÊÔ´ÖÐÏÂÔØ¡£ÔÚÕâÀïÒѾ­ÓкÜÈ«ÃæµÄ˵Ã÷Îļþ¡£ÎÒÐèÒª²¹³äµÄÊÇÔÚ½áºÏstruts2ʹÓõÄʱºò³öÏÖµÄÉÏ´«¿¨×¡µÄÎÊÌâ¡£
ÒÔÏÂÊÇתÌûÄÚÈÝhttp://blog.sina.com.cn/s/blog_632a158f0100g3ud.html
Ò».ÎÊÌ⣺ÔÚstruts2»·¾³ÏÂÓÃhtml±à¼­Æ÷²»ÄÜÉÏ´«Í¼Æ¬£»
¶þ.Îı¾±à¼­Æ÷£º·ÉÓã°æµÄewebeditor£¬¼òµ¥ÐÂÀËhtmleditor£»
Èý.״̬ÃèÊö£ºÁ½ÖÖÉÏ´«Í¼Æ¬¶¼ÊÇÔÚµã»÷ÉÏ´«È·ÈϵÄʱºò¿¨×¡£¬·ÉÓã°æµÄ»á³öÏÖ¹ö¶¯ÌõÏÔʾͼƬÉÏ´«ÖУ¬¿ÉÊǺܳ¤Ê±¼äÒ²ÉÏ´«²»³É¹¦£¬ºÜ³¤Ê±¼äºó£¬²é¿´Ô´´úÂ룬ÏÔʾΪnull£»
ËÄ.·ÖÎö£ºÊÇÓÉÓÚstruts¿ò¼Ü×Ô´øµÄÀ¹½ØÆ÷ÎÊÌ⣬ÉÏÍøÉÏËÑË÷½â¾öµÄ·½°¸£¬»ù±¾ÉÏûÓкܺõĽâ¾ö°ì·¨¡£×î¶àµÄÊÇÕâÑùµÄ´ð°¸£º¾ÍÊǸü¸Äweb.xml£¬¸Ä³ÉÈçÏ£º
<filter-mapping>
  <filter-name>struts2</filter-name>
  <url-pattern>*.action</url-pattern>
 </filter-mapping>
  <filter-mapping>
  <filter-name>struts2</filter-name>
  <url-pattern>*.jsp</url-pattern>
 </filter-mapping>
µ«ÊÇÎÊÌ⻹ûÓнâ¾ö¡£ÕâÑùµÄ·½·¨ÊDz»Ðеģ¬struts¿ò¼Ü»¹ÊÇ»áÀ¹½Ø¡£ÆäʵÊǶԴ¦ÀíÉÏ´«µÄ´úÂëÎļþ½øÐÐÀ¹½Ø¡£²»¹ÜÊÇ.action»¹ÊÇ.jsp¶¼»áÀ¹½Ø¡£
Îå.½â¾ö·½°¸£¨Õæ¶Ô·ÉÓã°æµÄewebeditor£©£º
1.ÐÞ¸ÄTomcat£¬ÔÚTomcat----->conf------>web.xmlÌí¼ÓÒ»¸öÎļþ¸ñʽʶ±ð£»
   <servlet-mapping>
       
<servlet-name>jsp</servlet-name>
       
<url-pattern>*.jsp</url-pattern>
   
</servlet-mapping>
   
<servlet-mapping>
       
<servlet-name>jsp</servlet-name>
      &nb


Ïà¹ØÎĵµ£º

jspÉú³ÉExcel±¨±íµÄ·½·¨

Excel±¨±íµÄ·½·¨£¬Ò»¸ö¹ý춼òµ¥£¬Ò»¸öÖ»ÄÜÓÃì¶windowƽ̨(ÒòΪʹÓÃjdbc-odbc bridge)£¬ÇÒÎÞ·¨Ê¹Óõ½ExcelÄÚ²¿µÄ¸÷ÖÖ¹«Ê½»òÊÇ·½·¨£¬Òò´Ë£¬½ñÌì½éÉÜÒ»¸öapache³öµÄÔª¼þ½ÐPOI£¬Ëü¿ÉÒÔÔÚUNIX»òwindowƽ̨´¦Àíword»òExcelµµ°¸£¬¶ø²»ÐèÒªÒÀ¿¿windowµÄcom£¬²¢ÇÒ¿ÉÉ趨´¢´æ¸ñ¸ñʽ¡¢ÁÐÓ¡¸ñʽµÈµÈ£»½ñÌìÎÒÀ´½éÉÜÆäÖÐÓйØ×ÊÁ϶ÁÈ¡¡¢ÐÂÔ ......

jsp´¦ÀíÂÒÂ뺯Êý

<%@ page language="java" contentType="text/html; charset=GBK" %>
<%!
 String   getCh(String   s)   {  
   try   {  
              String &nb ......

תÔØ jspËٳɾ«Òª

ServletÈý¸öÒªËØ:
1.±ØÐë¼Ì³Ð×ÔHttpServlet
2.±ØÐëʵÏÖdoGet()»òÕßdoPost()
3.±ØÐëÔÚweb.xmlÖÐÅäÖÃServlet
<servlet>
<servlet-name> </servlet-name>
<servlet-class> </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> </servlet-nam ......

jsp±êÇ©Ó÷¨

el±í´ïʽ·ÖÀà
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
 
·Ö Àà   ¹¦ÄÜ·ÖÀà   ±êÇ©Ãû³Æ    
Core   ±í´ïʽ²Ù×÷   out
set
remove
catch    
Á÷³Ì¿ØÖÆ   if ......

jspÒ³Ãæ·Åµ½WEB INF ¸úwebrootµÄÇø±ð

JSP´æ·ÅÔÚ WEB-INF ¸úwebrootµÄÇø±ð
    ·ÅÔÚwebrootÏÂÃæ:Óŵ㣬³ÌÐò½á¹¹ÇåÎú£¬±ãÓÚ±àÂëºÍά»¤£»È±µã£¬Òª¼Ó¹ýÂËÆ÷¡£
·ÅÔÚweb-infÏÂÃ棺Óŵ㣬²»ÓùýÂËÆ÷£»È±µã£¬´òÂÒÁ˳ÌÐò½á¹¹£¬±àÂëºÍά»¤Âé·³µã¡£
    webrootÆäʵÊÇÒ»¸öÃû×Ö¶øÒÑ£¬ÔÚ²¿ÊðºóÊÇ¿´²»µ½µÄ£¬·ÃÎʵÄʱºòÔÚurlÀï¿Ï¶¨Ò²ÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ