Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ȨÏÞ¿ØÖÆ

¸Ð¾õÎÄÕºܺþÍתһÏÂ,Ê×ÏȸÐлÕâλÈÊÐÖ!http://www.blogjava.net/wake/archive/2006/04/28/43843.html
½ü¼¸Ìì²»ÊǺÜ棬¾ÍÏë¿´¿´¹ØÓÚ WEB ·½Ê½ (Jsp) ºǫ́ȨÏÞ¿ØÖƵÄÉè¼ÆʵÏÖÎÊÌâ , ÔÚ Google ËÑÁËһϣ¬Ò»´ó¶ÑµÄ¶«Î÷£¬µ±¿´µ½Í·´óµÄʱºò¾ö¶¨×Ô¼ºÏÈÊÔ×Å×öÒ»¸ö¼òµ¥Àý×Ó¡£
ÏÈÍƼö´ó¼ÒÓÐʱ¼ä¿´Ò»Ï¹ØÓÚ RBAC ¼´½ÇÉ«·ÃÎÊ¿ØÖÆ ......

ÔÚjspÖÐʹÓÃsmartupload×é¼þÉÏ´«Îļþ

 
ÔÚjspÖÐʹÓÃsmartupload×é¼þÉÏ´«Îļþ
   jsp¶ÔÉÏ´«ÎļþµÄÖ§³Ö²»ÏóphpÖÐÖ§³ÖµÄÄÇôºÃ£¬Ö±½Ó×ö³ÉÁ˺¯Êý£¬Ò²²»ÏóaspÖÐҪͨ¹ý×é¼þ²ÅÄÜʵÏÖ¡£jspÖпÉÒÔͨ¹ýjavabeanÀ´ÊµÏÖ¡£µ«ÊÇÎÒÃÇûÓбØÒª×Ô¼ºÈ¥Ð´Ò»¸öÉÏÔصÄbean£¬ÔÚÍøÉÏÒѾ­ÓÐÁ˺ܶà³ÉÐ͵ļ¼Êõ£¬smartupload¾ÍÊÇÆäÖеÄÒ»¸ö¡£µ«ÊÇsmartuploadÊǽ«ÎļþÏȶÁµ ......

JSPÁ¬½Ó¸÷ÖÖÊý¾Ý¿â ´úÂ뼯½õ


ÄÇôÏÖÔÚ¿ªÊ¼ÎÒÃǵÄjspºÍÊý¾Ý¿âÖ®Âðɡ£
Ò»¡¢jspÁ¬½ÓOracle8/8i/9iÊý¾Ý¿â£¨ÓÃthinģʽ£©
  testoracle.jspÈçÏ£º
<%@ page contentType=\"text/html;charset=gb2312\"%>
<%@ page import=\"java.sql.*\"%>
<html>
<body>
<%Class.forName(\"oracle.jdbc.driver.Oracl ......

JSP(JSTL)ÖÐʹÓó£Á¿·ÀÖ¹Ó²±àÂë

this.state="01";ͨ³£µÄ×ö·¨ÊÇдһ¸öÀࣨ½Ó¿Ú£©À´´æ·Å³£Á¿
public interface MyConstant
{
public static final String STATE_01= "01";
}
È»ºóÔÚ³ÌÐòÖÐÕâÑùд¾Í¿ÉÒÔÁË
this.state=MyConstant.STATE_01;
ÔÚJava³ÌÐòÖÐÕâÑù¾Í¿ÉÒÔ±ÜÃâÓ²±àÂëÁË¡£¿ÉÊÇJSPÖÐÄØ£¿µ±È»£¬Èç¹ûJSPÖÐÔÊÐíʹÓÃScripletµÄ»°µ±È»Ò²¿ÉÒÔÖ±½ÓʹÓó ......

×Ô¶¨ÒåJSP±êÇ©


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