ÔÚWEB£INFÏÂʵÏÖjspÒ³ÃæµÄÌøת
²»Ëµ·Ï»°ÁË£¬¿´ÏÂÃæµÄÀý×Ó°É(ÀûÓÃstructsʵÏÖ£©£º
ÔÚWEB£INFÏÂÓÐÁ½¸öÒ³Ã棺 a.jsp ºÍ b.jsp £¬ ÏÖÔÚҪʵÏÖ´Óa.jspÁ¬½Óµ½b.jsp
ÔÚa.jspÖУº
<html:link action="link.do
">Á¬½Óµ½b</html:link>
ÔÚstructs-config.xmlÖУº
<action path="\link" forward=''/WEB-INF/jsp/b.jsp"/>
°ÑJSPÒ³Ãæ·ÅÔÚWEB£INFÏ¿ÉÒÔ±£»¤Ò³Ãæ²»±»Óû§ËæÒâµÄ·ÃÎÊ¡£×î½ü¿ªÊ¼Ñ§structs £¬¸Õ¿ªÊ¼Ò»Ö±Ã»Åª³É¹¦£¬ÔÒòÂ̫¸ãÁË£¬ÎÒ²»Ïë˵¡£°Ñ½áÂÛ·ÖÏí¸ø´ó¼Ò°É
Ïà¹ØÎĵµ£º
jspµÄÄÚÖöÔÏó¡¢¹¦ÄÜÒÔ¼°Ö÷Òª·½·¨
JspÄÚÖöÔÏó ¹¦ÄÜ Ö÷Òª·½·¨
out Ïò¿Í»§¶ËÊä³öÊý¾Ý print() println() flush() clear() isAutoFlush() getBufferSize() close() …………
request Ïò¿Í»§¶ËÇëÇóÊý¾Ý getAttributeNames() getCookies() getParameter() getParameterValues() ......
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 ......
Ò»¸ötag¾ÍÊÇÒ»¸öÆÕͨµÄjavaÀ࣬ËüΩһÌرðÖ®´¦ÊÇËü±ØÐë¼Ì³ÐTagSupport»òÕßBodyTagSupportÀà¡£ÕâÁ½¸öÀàÌṩÁËһЩ·½·¨£¬¸ºÔðjspÒ³ÃæºÍÄã±àдµÄÀàÖ®¼äµÄ½»»¥£¬ÀýÈçÊäÈ룬Êä³ö¡£¶øÕâÁ½¸öÀàÊÇÓÉjspÈÝÆ÷ÌṩµÄ£¬ÎÞÐ뿪·¢ÈËÔ±×Ô¼ºÊµÏÖ¡£»»¾ä»°Ëµ£¬ÄãÖ»Ðè°ÑʵÏÖÁËÒµÎñÂß¼µÄÀà¼Ì³ÐTagSupport»òÕßBodyTagSupport£¬ÔÙ×öһЩÌرðµÄ¹¤× ......
J2EE ̽Ë÷Õß:
´´½¨ºÍ¹ÜÀíÓÐ״̬ Web Ó¦ÓóÌÐò
¶Ô4ÖֻỰ×÷ÓÃÓòµÄÊʵ±´¦Àí
ÎĵµÑ¡Ïî
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
ÍØÕ¹ Tomcat Ó¦ÓÃ
......
JavaScript´úÂ룺
//°ìÊ´¦³éÈ¡±ÈÀý¸Ä±ä£¬¸üÐÂÆäËûÊý¾Ý
....function changeOfficeSampleScale(obj,flushOfficeRow){
var row=obj.parentNode.parentNode; //È¡µÃËùÔÚÐÐ
var officeCode=row.id; //È¡µÃÐеÄId
if(i ......