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

jsp²»ÄÜʹÓÃEL±í´ïʽµÄ½â¾ö°ì·¨

Èç¹ûweb.xmlÀïÃæµÄ<web-app>ÊÇversion="2.4"£¬ÄÇô¾ÍÒªÔÚ<jsp-property-group>ÀïÉèÖá£Èç¹ûversion="2.5"¾Í²»ÐèÒª¡£
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd">
.
.
.
<!-- ÅäÖÃjstl -->
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
</jsp-property-group>
.
.
.
</web-app>


Ïà¹ØÎĵµ£º

ÔÚ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 ......

Struts2¿ò¼ÜJSPÒ³Ãæ´«ÊäÖÐÎÄÂÒÂëÎÊÌâ½â¾ö

Action´úÂë
package com.zxc.action;import java.net.URLEncoder;public class XiaoZAction {
private String username; public String getUsername() { return username; }
public String execute() throws Exception{
username = URLEncoder.encode("ÖÜС´¨", "utf-8"); return "success"; }}

struts.x ......

JSPÒ³ÃæÌøת´óÈ«

JSPÖеÄÌøת£º
(1). forward()·½·¨
ʹÓõ½javax.servlet.RequestDispatcherÀà
RequestDispatcher rd = getServletContext().getRequestDispatcher("url");
rd.forward(requestVar,requestVar); //´«µÝservletµÄÈë¿Ú²ÎÊý
/*forwardº¯ÊýÒѾ­°ÑÔ­Ò³ÃæµÄrequest,response¶ÔÏó´«ÈëеÄÒ³Ã棬Òò´ËÕâо ......

JSPÖеÄinclude »úÖÆ

±¾ÎÄÊÇÐ嵀 JSP ×î¼Ñʵ¼ùϵÁÐÎÄÕµĵÚÒ»²¿·Ö£¬Ëü½éÉÜÁË JavaServer Pages include »úÖÆ¡£Çë¸úËæ Java ±à³Ìר¼Ò Brett McLaughlin ѧϰÈçºÎʹÓà include ½«¾²Ì¬µÄÍ·ÎļþºÍ½Å×¢Îļþ¼ÓÈëÄúµÄÍøÕ¾»ò Web Ó¦ÓóÌÐòÒ³ÃæÖС£
»¶Ó­ÔĶÁ Java רÇøÖÐ×îеÄ×î¼Ñʵ¼ùϵÁÐÎÄÕ¡£Èç¹ûÄú¿´¹ýÏÈÇ°µÄϵÁÐÎÄÕ£¬ÄÇôÄú»áÖªµÀ×î¼Ñʵ¼ùÖ¼ÔÚÈà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ