ÈçºÎÈ¥³ýJSPÊä³öHTMLʱ²úÉúµÄ´óÁ¿¿Õ¸ñºÍ»»ÐÐ
ÔÚWEBÓ¦ÓÃÖÐ,Èç¹ûʹÓÃjsp×÷Ϊview²ãµÄÏÔʾģ°å,¶¼»á±»¿Õ¸ñ/¿Õ»»ÐÐÎÊÌâËùÀ§ÈÅ.
Õâ¸öÎÊÌâµ±ÄêÒ²À§ÈÅÁËÎұȽϳ¤µÄʱ¼ä.ÒòΪÔÚjspÄÚʹÓõÄEL±êÇ©ºÍÆäËû±êǩʱ,»á²úÉú´óÁ¿µÄ¿Õ¸ñºÍ»»Ðзû.ÀýÈç:
------- start ----------
<c:choose>
<c:when test="${fn:length(mainPageList)>1&}">
Something
</c:when>
<c:otherwise>
Others
</c:otherwise>
</c:choose>
------- end -----------
Õâ¶Î´úÂëÔÚTomcatÉÏÊä³öÈçÏ£¬¶àÁ˼¸Ðл»ÐС£
------- start ----------
Something
------- end -----------
µ±È»£¬Ò»°ã²»È¥ÌرðÁôÒâÊDz»»á·¢ÏÖÓÐʲôÎÊÌâµÄ£¬±Ï¾¹Êä³öÔÙ¶àµÄ¿Õ¸ñºÍ»»Ðзû£¬¶ÔÓÚä¯ÀÀÆ÷Éú³ÉµÄ×îÖÕЧ¹ûÊÇÒ»ÑùµÄ¡£Ò²¾ÍÊǴ󲿷ֿª·¢ÈËÔ±ºöÂÔÕâ¸öÎÊÌâµÄÔ
Òò£»µ«Êµ¼ÊÉÏÕâЩ¿Õ¸ñºÍ»»ÐлáÕ¼ÓÃÁ˲»Éٿռ䣬ÎҵľÑéÊÇ30%×óÓÒÊÇ¿Õ¸ñ/»»ÐС£Ò²ÓÐÈË˵£¬µ±web·þÎñÆ÷ÒÔzipµÄ·½Ê½À´Êä³öhtmlʱ£¬¿Õ¸ñÒýÆðµÄ
´ø¿íÎÊÌâ¾Í¿ÉÒÔ½â¾öÁË£»Êǵģ¬µ±Ê¹ÓÃzipÀ´Êä³öhtmlʱ£¬¿Õ¸ñ/»»ÐеĿռä»á±»½ÚÊ¡»ØÀ´£¬µ«Õâ¸öÔö¼ÓzipµÄ¹¤×÷Á¿£¬¶øÇÒ×î´óµÄÎÊÌâÊÇ£¬ä¯ÀÀÆ÷Éú³ÉÒ³
Ãæʱ£¬»¹ÊǻỹÔËùÓеĿոñµÄ»»Ðзû¡£¶ÔÓÚÇ°¶Ë¿ª·¢ÈËÔ±À´ËµÕâÊǸöجºÄ£¬Ãæ¶Ô´óÁ¿µÄ¿Õ¸ñºÍÈß³¤µÄhtmlÔ´Â룬ÏëÒªÕÒµ½¶ÔÓ¦³öÎÊÌâµÄÑùʽËùÔÚµÄλÖÿɲ»ÊÇ
ÈÝÒ×µÄÊÂÇé¡£
ÏÂÃæ˵һϽâ¾ö·½°¸£¬ÒÔTomcatΪÀý£º
·½°¸Ò»£¬ÀûÓÃweb·þÎñÆ÷µÄtrimSpaces¹¦ÄÜ¡£
Tomcat5 ÒÔÉÏ°æ±¾¶¼¿ÉÒÔʹÓã¬ÕâÊÇ×î¼òµ¥µÄ·½·¨¡£
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
 
Ïà¹ØÎĵµ£º
·ç¸ñÒ»
ÐÇÆÚËÄ,4ÔÂ19ÈÕ,2007Äê
·ç¸ñ¶þ 1:23:15ÏÂÎç
·ç¸ñÈý ÐÇÆÚËÄ,4ÔÂ19ÈÕ,2007Äê 1:23:15ÏÂÎç
·ç¸ñËÄ 4../../../19../../../07
·ç¸ñÎå: 13:23:15
·ç¸ñÁù: Thu Apr 19 13:23:15 UTC+0800 2007
·ç¸ñÆß Microsoft Internet Exp ......
JavaScript´úÂ룺
//°ìÊ´¦³éÈ¡±ÈÀý¸Ä±ä£¬¸üÐÂÆäËûÊý¾Ý
....function changeOfficeSampleScale(obj,flushOfficeRow){
var row=obj.parentNode.parentNode; //È¡µÃËùÔÚÐÐ
var officeCode=row.id; //È¡µÃÐеÄId
if(i ......
Èç¹û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/javae ......
Ò»¡¢
ÔÚÒ»¸öÉè¼ÆÁ¼ºÃµÄWebÓ¦ÓÃÖУ¬¶¼»á×ÛºÏʹÓÃServletºÍJSP¼¼Êõ¡£Servlet¿ØÖÆÒµÎñÁ÷ת£¬JSPÔò¸ºÔðÒµÎñ´¦Àí½á¹ûµÄÏÔʾ¡£´Ëʱ£¬½«´óÁ¿Óõ½Öض¨Ïò¼¼Êõ¡£
¡¡¡¡Öض¨Ïò¼¼Êõ¿ÉÒÔ·ÖΪÁ½À࣬һÀàÊÇ¿Í»§¶ËÖض¨Ïò£¬Ò ......
JSP/Servlet µÄ¹Øϵ
JSP £¦Servlet ÊôÓÚjava web ²ãµÄ¼¼Êõ£¬×÷Óö¼ÊÇÓÃÀ´ÊµÏÖ¶¯Ì¬ÍøÒ³¡£JSP Ö÷ÒªÃæÏòµÄÊÇÍøÒ³Éè¼ÆÈËÔ±£¬Servlet Ö÷ÒªÃæÏòµÄÊdzÌÐòÉè¼ÆÈËÔ±¡£ÎÞÂÛÄã²ÉÓÃÁ½ÕßÖÐÄÄÒ»ÖÖµ¥Ò»µÄ¼¼Êõ£¬Ä㶼¿ÉÒÔ½â¾öËùÓж¯Ì¬ÍøÒ³³ÊÏÖµÄÎÊÌâ¡£´ÓÔËÐз½Ê½ÉϽ²£¬JSP ÊÂʵÉÏÐèҪתÒëΪServlet ²ÅÄÜÔËÐУ¬ËùÒÔ£¬ÓÐÒ»ÖÖ˵·¨ËµËüÃÇÊÇ"һà ......