ÐÂÀËÔÚÏß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
Ïà¹ØÎĵµ£º
¡¡¡¡ RSS2.0ÔÚÍøÂçÉÏ´óÐÐÆäµÀ,¸÷ÖÖÍøÕ¾¶¼¼ÓÉÏRSSÖ§³Ö,¹ØÓÚRSS¹æ·¶,¿ÉÒÔä¯ÀÀһϠhttp://blogs.law.harvard.edu/tech/rss
Ôڼƻ®Éú³ÉRSSÎļþµÄʱºò,˳±ãËÑË÷ÁËÒ»ÏÂJIRAºÍConfluenceµÄ³ÌÐò,·¢ÏÖËüÃÇ·Ö±ðÊÇÓÃÄ£°å·½Ê½ºÍJSP¶¯Ì¬Ò³ÃæÀ´Õ¹Ê¾µÄ.
ÓÚÊÇÎÒÒ²Ïëµ½Á½ÖÖ·½Ê½:
¡¡¡¡1.ÓÃFreeMarkerÉú³É¾²Ì¬Îļþ,ÊÊÓÃÓÚ¸üв ......
1¡¢forward ºÍredirectµÄÇø±ð
´ð£ºforwardÊÇ·þÎñÆ÷ÇëÇó×ÊÔ´£¬·þÎñÆ÷Ö±½Ó·ÃÎÊÄ¿±êµØÖ·µÄURL£¬°ÑÄǸöURLµÄÏìÓ¦ÄÚÈݶÁÈ¡¹ýÀ´£¬È»ºó°ÑÕâЩÄÚÈÝÔÙ·¢¸øä¯ÀÀÆ÷£¬ä¯ÀÀÆ÷¸ù±¾²»ÖªµÀ·þÎñÆ÷·¢Ë͵ÄÄÚÈÝÊÇ´ÓÄĶùÀ´µÄ£¬ËùÒÔËüµÄµØÖ·À¸Öл¹ÊÇÔÀ´µÄµØÖ·¡£
redirect¾ÍÊÇ·þÎñ¶Ë¸ù¾ÝÂß¼,·¢ËÍÒ»¸ö״̬Âë,¸æËßä ......
JSP´æ·ÅÔÚ WEB-INF ¸úwebrootµÄÇø±ð
·ÅÔÚwebrootÏÂÃæ:Óŵ㣬³ÌÐò½á¹¹ÇåÎú£¬±ãÓÚ±àÂëºÍά»¤£»È±µã£¬Òª¼Ó¹ýÂËÆ÷¡£
·ÅÔÚweb-infÏÂÃ棺Óŵ㣬²»ÓùýÂËÆ÷£»È±µã£¬´òÂÒÁ˳ÌÐò½á¹¹£¬±àÂëºÍά»¤Âé·³µã¡£
webrootÆäʵÊÇÒ»¸öÃû×Ö¶øÒÑ£¬ÔÚ²¿ÊðºóÊÇ¿´²»µ½µÄ£¬·ÃÎʵÄʱºòÔÚurlÀï¿Ï¶¨Ò²ÊÇ ......
×î»ù±¾µÄÂÒÂëÎÊÌâ
Õâ¸öÂÒÂëÎÊÌâÊÇ×î¼òµ¥µÄÂÒÂëÎÊÌâ¡£Ò»°ãлá³öÏÖ¡£¾ÍÊÇÒ³Ãæ±àÂë²»Ò»Öµ¼ÖµÄÂÒÂë¡£
Html´úÂ룺
£¼%@ page language="java" pageEncoding="UTF-8"%£¾
£¼%@ page contentType="text/html;charset=iso8859-1"%£¾
£¼html£¾
£¼head£¾
£¼title ......
1.request¶ÔÏó
¸Ã¶ÔÏó·â×°ÁËÓû§Ìá½»µÄÐÅÏ¢£¬Í¨¹ýµ÷ÓøöÔÏóµÄÏìÓ¦µÄ·½·¨¿ÉÒÔ»ñÈ¡Óû§Ìá½»µÄÐÅÏ¢¡£
µ±request¶ÔÏó»ñÈ¡Óû§Ìá½»µÄºº×Ö×Ö·ûʱ£¬»á²úÉúÂÒÂ룬ÓÉÏÂÃæµÄ·½·¨¿ÉÒÔ½â¾ö£º
Sting s2 = new String(s1.getBytes("iso8859-1"),"GB2312")½øÐÐת»»¡£
request³£Óõķ½·¨ ......