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>
Ïà¹ØÎĵµ£º
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 ......
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ÖеÄÌøת£º
(1). forward()·½·¨
ʹÓõ½javax.servlet.RequestDispatcherÀà
RequestDispatcher rd = getServletContext().getRequestDispatcher("url");
rd.forward(requestVar,requestVar); //´«µÝservletµÄÈë¿Ú²ÎÊý
/*forwardº¯ÊýÒѾ°ÑÔÒ³ÃæµÄrequest,response¶ÔÏó´«ÈëеÄÒ³Ã棬Òò´ËÕâо ......
±¾ÎÄÊÇÐ嵀 JSP ×î¼Ñʵ¼ùϵÁÐÎÄÕµĵÚÒ»²¿·Ö£¬Ëü½éÉÜÁË JavaServer Pages include »úÖÆ¡£Çë¸úËæ Java ±à³Ìר¼Ò Brett McLaughlin ѧϰÈçºÎʹÓà include ½«¾²Ì¬µÄÍ·ÎļþºÍ½Å×¢Îļþ¼ÓÈëÄúµÄÍøÕ¾»ò Web Ó¦ÓóÌÐòÒ³ÃæÖС£
»¶ÓÔĶÁ Java רÇøÖÐ×îеÄ×î¼Ñʵ¼ùϵÁÐÎÄÕ¡£Èç¹ûÄú¿´¹ýÏÈÇ°µÄϵÁÐÎÄÕ£¬ÄÇôÄú»áÖªµÀ×î¼Ñʵ¼ùÖ¼ÔÚÈà ......