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

jsp:getProperty±êÇ©

jsp:getProperty±êÇ©ÓÃÓÚ»ñÈ¡±»¼ÓÔØµ½µ±Ç°Ò³ÃæÖеÄJavaBeanÖÐij¸öÊôÐÔµÄÖµ
¸ñʽ£º<jsp:getProperty name=? property=? />
name£ºJavaBeanµÄ¶ÔÏóÃû£¬ÓÃÓÚÖ¸¶¨´ÓÄĸöJavaBeanÖлñÈ¡ÊôÐÔÖµ
property£ºJavaBeanÖеÄÊôÐÔÃû£¬ÓÃÓÚÖ¸¶¨»ñÈ¡JavaBeanÖеÄÄĸöÊôÐÔÖµ
                ×¢Ò⣺µ±JavaBeanÖеÄÊôÐÔÃûΪxxx£¬¶ø»ñÈ¡¸ÃÊôÐÔÖµµÄ·½·¨ÃûΪgetYyy()£¬Ôòproperty="yyy"£¬¶ø²»ÊÇproperty="xxx"


Ïà¹ØÎĵµ£º

jspÁ¬½Ó¸÷ÖÖÊý¾Ý¿â´óÈ«

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

JSPÄÚÖöÔÏó

jspÄÚÖöÔÏó
¡¡¡¡¶¨Ò壺¿ÉÒÔ²»¼ÓÉùÃ÷¾ÍÔÚJSPÒ³Ãæ½Å±¾£¨Java³ÌÐòƬºÍJava±í´ïʽ£©ÖÐʹÓõijÉÔ±±äÁ¿
¡¡¡¡JSP¹²ÓÐÒÔÏÂ9ÖÖ»ù±¾ÄÚÖÃ×é¼þ£¨¿ÉÓëASPµÄ6ÖÖÄÚ²¿×é¼þÏà¶ÔÓ¦£©£º
¡¡¡¡
ÄÚÖöÔÏó
´ú±íÄÚÈÝ
·¶Î§
request
´¥·¢·þÎñµ÷ÓõÄÇëÇó
request
response
¶ÔÇëÇóµÄÓ¦´ð
page
session
ΪÇëÇóµÄ¿Í»§´´½¨µÄsessio ......

jspÒ³ÃæÀûÓÃjs activexobjectµ÷Óÿͻ§»úexeÎļþ

<SCRIPT language=JavaScript>
function Run(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
//alert("ok");
}
catch(e)
{
alert('ÕÒ²»µ½ÎÄ ......

JSP¶ÔÎļþµÄ²Ù×÷

Ò»¡¢ÔÚJSPÒ³ÃæÖжÁÈ¡±¾µØÎļþÄÚÈÝ£º
<%
    try {
        BufferedReader in = new BufferedReader(new FileReader("D:/test.txt"));
        String file = "";
        String temp = "";
 &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ