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

JSP±ê×¼±êÇ©¿âJSTL

JSTLµÄÄ¿±êÊÇΪÁ˼ò»¯JSPÒ³Ãæ¶øÉè¼Æ¡£¶ÔÓÚÒ³ÃæÉè¼ÆÈËÔ±À´Ëµ£¬Ê¹Óýű¾ÓïÑÔ(JSPĬÈÏÊÇJava)²Ù×÷¶¯Ì¬Êý¾ÝÊDZȽÏÀ§Äѵģ¬¶ø²ÉÓñêÇ©ºÍ±í´ïʽÓïÑÔÔòÏà¶ÔÈÝÒ×Щ£¬JSTLµÄʹÓÃΪҳÃæÉè¼ÆÈËÔ±ºÍ³ÌÐò¿ª·¢ÈËÔ±µÄ·Ö¹¤Ð­×÷ÌṩÁ˱ãÀû¡£
JSTLËäÈ»½Ð×ö±ê×¼±êÇ©¿â£¬µ«Êµ¼ÊÉÏÊÇÓÉ5¸ö²»Í¬¹¦ÄܵıêÇ©¿â×é³É¡£ÕâÀïÖ»½éÉܳ£ÓõÄCore±êÇ©¿â
Core±êÇ©¿âÖ÷Òª°üÀ¨ÁËÒ»°ãÓÃ;µÄ±êÇ©¡¢Ìõ¼þ±êÇ©¡¢µü´ú±êÇ©ºÍURLÏà¹ØµÄ±êÇ©¡£ÔÚJSPÒ³ÃæÖÐʹÓÃCore±êÇ©¿â£¬ÒªÊ¹ÓÃtaglibÖ¸Áָ¶¨ÒýÓõıêÇ©¿â£¬ÈçÏ£º
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<s:set>
ÉèÖ÷¶Î§±äÁ¿µÄÖµ
<s:set var="user" value="zhangsan" scope="session"/>
»ò
<s:set var="user" scope="session">zhangsan</s:set>
ÉèÖöÔÏóµÄÊôÐÔÖµ
<s:set target="${user}" value="18" property="age"/>
»ò
<s:set target="${preferences}" property="color">${param.color}</c:set>
Ìõ¼þ±êÇ©£º
Àý
<c:choose>
    <c:when test="${param.name='zhangsan'}">
        ${param.name} is manager!
    </c:when>
    <c:when test="${param.name='lisi'}">
        ${param.name} is salesman!
    </c:when>
    <c:otherwise>
        ${param.name} is employee!
    </c:otherwise>
</c:choose>
µü´ú±êÇ©:
<c:forEach>ÓÃÓÚ¶Ô°üº¬Á˶à¸ö¶ÔÏóµÄ¼¯ºÏ½øÐеü´ú
Àý
<table>
    <c:forEach var="user" itmes="${useList}" varStatus="status">
        <tr>
            <td>${status.count}</td>
            <td>${status.index}</td>
            <td>${status.first}</td>
            <td&g


Ïà¹ØÎĵµ£º

µ±jspºÍservlet³öÏÖÂÒÂëÎÊÌâºóµÄ½â¾ö·½°¸

ÉÏÍø¿´Á˺ö࣬¾ÍÕâһƪ½â¾öÁËÎÒµÄÎÊÌ⣬ÏÖת£¬ÎÒµÄÏîÄ¿ÓõÄÊÇMVC¼Ü¹¹£¬ÓÐͳһµÄ¿ØÖÆÆ÷£¬×ªÏò²»Í¬µÄAction£¬ÉÏÍø¿´Á˺ö࣬´ó²¿·ÖÊÇ˵¼ÓÈërequest.setCharacterEncoding("utf-8");µ«ÊǾ­¹ýÎÒµÄÊÔÑ飬ÕâÖ»ÓÐÔÚÀûÓÃJSP´¦Àí±íµ¥´«ÊäÊý¾Ýʱ²Å¿ÉÓã¬ÔÚÎҵĶ«Î÷ÖÐÎÞ·¨½â¾ö£¬ºóÀ´·¢ÏÖ»¹ÊÇÓÃFilterChainºÃ£¬ºÇºÇ£¬Öص㻹ÊÇÔÚrequest ......

JSPȨÏÞ¿ØÖÆ£¨¶þ£©

1 £©Ê×ÏȽ¨Á¢¹ÜÀíÓû§±í£¬ÆäÖÐ UserPopedom ¼Ç¼Óû§µÄȨÏÞ×Ö·û£¬ÆäʵҲ¾ÍÊÇһЩ JSP »òÕß ACTION µÄÎļþÃû£º
CREATE TABLE [dbo].[AdminUser] (
  [UserID] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
  [UserName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
  [UserPass] [varchar ......

JSPÎļþÏÂÔØ

֮ǰ,д¹ýÒ»¸öDownload.jspÎļþ,Äܽâ¾öÏÂÔØÎļþÂÒÂëÎÊÌâ(ÖîÈç:DOC,XSLÎļþµÈµÈ).
ºóÀ´·¢ÏÖ,Óö¼ûÖÐÎÄÃûµÄÎļþµÄʱºò,ÎļþÏÂÔؽ«»á±¨´í~~~~
½ñÌì,ͨ¹ý¸ÄдԭDownload.jspÎļþÒÑÍêÈ«½â¾öÁËÕâ¸öÎÊÌâ~
Ä¿Ç°,°ÑÒ»ÕûÌ×µÄÎļþÉÏ´«ÏÂÔصķ½·¨¸øÌù³öÀ´~~~ÒÔ±ã´ó¼Ò½è¼ø!~!~!~!~! 
×÷Õß:¹Å°£¼°·¨ÀÏ
------------------------ ......

jspÁ¬½ÓÊý¾Ý¿âÈ«¼¯

¡¡ÏÖÔÚÓкöà³õѧjspµÄÍøÓѾ­³£»áÎÊÊý¾Ý¿âÔõôÁ¬½Ó°¡£¬ÔõôÀϳö´í°¡£¿ËùÒÔÎÒ¼¯ÖеÄÔÚÕâдƪÎÄÕ¹©´ó¼Ò²Î¿¼£¬ÆäʵÕâÖÖ°ÑÊý¾Ý¿âÂß¼­È«²¿·ÅÔÚjspÀïδ±ØÊǺõÄ×ö·¨£¬µ«ÊÇÓÐÀûÓÚ³õѧÕßѧϰ£¬ËùÒÔÎÒ¾ÍÕâÑù×öÁË£¬µ±´ó¼Òѧµ½Ò»¶¨³Ì¶ÈµÄʱºò£¬¿ÉÒÔ¿¼ÂÇÓÃMVCµÄģʽ¿ª·¢¡£ÔÚÁ·Ï°ÕâЩ´úÂëµÄʱºò£¬ÄãÒ»¶¨½«jdbcµÄÇý¶¯³ÌÐò·Åµ½·þÎñÆ÷µÄÀà ......

×Ô¶¨ÒåJSP±êÇ©


Ò»¸öÏîÄ¿ÖлáÔÚ¶à¸öJSP½çÃæÖÐʹÓÃÏÂÀ­¿ò£¬ÈÕÆڿؼþ£¬·ÖÒ³¿Ø¼þ¡£ÈôÄܽ«´ËÀà¿Ø¼þ³éÏó³öÀ´£¬×ö³ÉÒ»¸öJspTagµÄ»°£¬ÄÇʹÓÃÆðÀ´¾Í·½±ã¶àÁË¡£Í¬Ê±±ãÓÚJSPµÄÔĶÁ£¬¸üÖ÷ÒªµÄÊÇ·½±ãÁËÏîÄ¿µÄ¹ÜÀíÓëά»¤¡£
ÏÂÃæÒÔÐÐÒµÏÂÀ­¿ò¿Ø¼þΪÀý½éÉÜ×Ô¶¨ÒåJspTag£¬ÓÈÆä×¢ÒâºìÉ«±ê×¢´¦£¬´Ó¶ÔÓ¦¹Øϵ¿ÉÒÔÕÒµ½ÔËÓùæÂÉ£º
Ê×ÏȽ¨Á¢/WEB-INF/tags/my-t ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ