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

ÔÚ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µÄÄÚÖöÔÏó¡¢¹¦ÄÜÒÔ¼°Ö÷Òª·½·¨
JspÄÚÖöÔÏó ¹¦ÄÜ Ö÷Òª·½·¨
out  Ïò¿Í»§¶ËÊä³öÊý¾Ý print() println() flush() clear() isAutoFlush() getBufferSize()   close() …………
request Ïò¿Í»§¶ËÇëÇóÊý¾Ý getAttributeNames() getCookies() getParameter() getParameterValues() ......

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×Ô¶¨Òå±êÇ©±àд

Ò»¸ötag¾ÍÊÇÒ»¸öÆÕͨµÄjavaÀ࣬ËüΩһÌرðÖ®´¦ÊÇËü±ØÐë¼Ì³ÐTagSupport»òÕßBodyTagSupportÀà¡£ÕâÁ½¸öÀàÌṩÁËһЩ·½·¨£¬¸ºÔðjspÒ³ÃæºÍÄã±àдµÄÀàÖ®¼äµÄ½»»¥£¬ÀýÈçÊäÈ룬Êä³ö¡£¶øÕâÁ½¸öÀàÊÇÓÉjspÈÝÆ÷ÌṩµÄ£¬ÎÞÐ뿪·¢ÈËÔ±×Ô¼ºÊµÏÖ¡£»»¾ä»°Ëµ£¬ÄãÖ»Ðè°ÑʵÏÖÁËÒµÎñÂß¼­µÄÀà¼Ì³ÐTagSupport»òÕßBodyTagSupport£¬ÔÙ×öһЩÌرðµÄ¹¤× ......

jsp×÷Ó÷¶Î§Ð¡½á


J2EE ̽Ë÷Õß:
´´½¨ºÍ¹ÜÀíÓÐ״̬ Web Ó¦ÓóÌÐò
¶Ô4ÖֻỰ×÷ÓÃÓòµÄÊʵ±´¦Àí


ÎĵµÑ¡Ïî


½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ

ÍØÕ¹ Tomcat Ó¦ÓÃ
......

ÔÚJSPÖÐÓÃObject¶ÔÏóÀ´´«µÝÖµ

JavaScript´úÂ룺
          //°ìÊ´¦³éÈ¡±ÈÀý¸Ä±ä£¬¸üÐÂÆäËûÊý¾Ý
....function changeOfficeSampleScale(obj,flushOfficeRow){
 var row=obj.parentNode.parentNode;  //È¡µÃËùÔÚÐÐ
 var officeCode=row.id; //È¡µÃÐеÄId
 
 if(i ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ