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Àïδ±ØÊǺõÄ×ö·¨£¬µ«ÊÇÓÐÀûÓÚ³õѧÕßѧϰ£¬ËùÒÔÎÒ¾ÍÕâÑù×öÁË£¬µ±´ó¼Òѧµ½Ò»¶¨³Ì¶ÈµÄʱºò£¬¿ÉÒÔ¿¼ÂÇÓÃMVCµÄģʽ¿ª·¢¡£ÔÚÁ·Ï°ÕâЩ´úÂëµÄʱºò£¬ÄãÒ»¶¨½«JDBCµÄÇý¶¯³ÌÐò·Åµ½·þÎñÆ÷µÄÀà·¾ ......
jspÄÚÖöÔÏó
¡¡¡¡¶¨Ò壺¿ÉÒÔ²»¼ÓÉùÃ÷¾ÍÔÚJSPÒ³Ãæ½Å±¾£¨Java³ÌÐòƬºÍJava±í´ïʽ£©ÖÐʹÓõijÉÔ±±äÁ¿
¡¡¡¡JSP¹²ÓÐÒÔÏÂ9ÖÖ»ù±¾ÄÚÖÃ×é¼þ£¨¿ÉÓëASPµÄ6ÖÖÄÚ²¿×é¼þÏà¶ÔÓ¦£©£º
¡¡¡¡
ÄÚÖöÔÏó
´ú±íÄÚÈÝ
·¶Î§
request
´¥·¢·þÎñµ÷ÓõÄÇëÇó
request
response
¶ÔÇëÇóµÄÓ¦´ð
page
session
ΪÇëÇóµÄ¿Í»§´´½¨µÄsessio ......
<SCRIPT language=JavaScript>
function Run(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
//alert("ok");
}
catch(e)
{
alert('ÕÒ²»µ½ÎÄ ......
Ò»¡¢ÔÚJSPÒ³ÃæÖжÁÈ¡±¾µØÎļþÄÚÈÝ£º
<%
try {
BufferedReader in = new BufferedReader(new FileReader("D:/test.txt"));
String file = "";
String temp = "";
&n ......