jsp:useBean±êÇ©
jsp:useBean±êÇ©ÓÃÓÚÖ¸¶¨ÔÚµ±Ç°JspÒ³ÃæÖÐÒªÓõ½µÄJavaBean
¸ñʽ£º<jsp:Bean id=? scope=? class=? />
id£º×Ô¶¨ÒåÒ»¸öÔÚµ±Ç°Ò³ÃæÖÐÒªÒýÓõÄJavaBean(¼´JavaÀà)µÄÒ»¸ö¶ÔÏóÃû(¸Ã¶ÔÏóÔÚºóÃæµÄ´úÂëÖоͿÉÒÔµ÷ÓÃÆäËùÊôµÄJavaBeanÖеÄÊôÐԺͷ½·¨)
scope£ºÓÃÓÚÖ¸¶¨¸ÃJavaBeanµÄ×÷Ó÷¶Î§£¬È¡ÖµÈçÏÂ
1.page£º±íʾJavaBeanÖ»ÄÜÔÚµ±Ç°Ò³ÃæÖÐʹÓá£ÔÚJspÒ³ÃæÖ´ÐÐÍê±Ïºó£¬¸ÃJavaBean¾Í»á±»½øÐÐÀ¬»ø»ØÊÕ
2.request£º±íʾJavaBeanÔÚÏàÁÚµÄÁ½¸öÒ³ÃæÖÐÓÐЧ
3.session£º±íʾJavaBeanÔÚÕû¸öä¯ÀÀÆ÷ÖÐÓÐЧ
4.application£º±íʾJavaBeanÔÚÕû¸öWeb·þÎñÆ÷ÖÐÓÐЧ
class£ºÖ¸¶¨Òªµ÷Óõ±Ç°Web¹¤³ÌÖеÄÄĸöJavaBean
ÔÚʵ¼ÊÓ¦ÓÃÖУ¬JavaBean±»×éÖ¯³ÉΪ°ü(package)£¬Ò²¾ÍÊÇ°ÑÒ»×éJavaBean·ÅÔÚͬһ¸öĿ¼Ï£¬ÒÔ±ã½øÐйÜÀí£»±àÒëºÃµÄ
JavaBeanÊÇÒ»¸ö.classÎļþ£¬ÔÚTomcatÖУ¬.classÎļþ±»±£´æÔÚweb-inf/classesĿ¼ÏÂ
¸ñʽ£ºclass="°üÃû.ÀàÃû"; //Ò»¶¨ÒªÖ¸¶¨JavaBeanµÄ°üÃû
Ïà¹ØÎĵµ£º
Cookie¶ÔÏóÊÇÓÉWeb·þÎñÆ÷²úÉúºó±£´æÔÚä¯ÀÀÆ÷ÖеÄÐÅÏ¢£¬Ëü¿ÉÒÔÓÃÀ´±£´æһЩСÁ¿µÄÐÅÏ¢ÔÚä¯ÀÀÆ÷ÖУ»¸Ã¶ÔÏó²»ÊôÓÚJspµÄÄÚÖöÔÏó£¬ËüÐèÒª¹¹Ôì²ÅÄÜʹÓÃ
1. ¹¹Ô죺
Cookie cookie¶ÔÏóÃû=new Cookie(cookie±äÁ¿Ãû£¬cookieÖÐËù´æ´¢µÄ¶ÔÏó)
2. cookieµÄдÈëÓë¶ÁÈ¡
&nbs ......
ºìÆì×ÀÃæLinux4.1Ï°²×°ºÍÅäÖÃJSP·þÎñÆ÷È«¹¥ÂÔ
ÕâÁ½ÌìÊÔ×ÅÔÚºìÆìLinux×ÀÃæ°æ4.1Ï°²×°WEB·þÎñÆ÷£¬Òѳɹ¦°²×°£¬ÏÖ°ÑÎҵݲװ¹ý³Ì½éÉÜÈçÏ£¬ÒÔ¸øÓÐÏàËÆÐèÇóµÄÍøÓѲο¼¡£
ÎҵݲװҪÇóÊÇÖ§³ÖJSP¡¢html¡¢htmÍøÒ³£¬ËùÒÔÑ¡ÓÃJDK1.5.0+Tomcat5.5.4+mySQL4.1.7£¬ÕâЩ¶¼Êǵ±Ç°¸÷Èí¼þ×îеÄÎȶ¨°æ±¾£¨·Ç²âÊ԰棩¡£ÔÝûÓа²×°Apacheº ......
<SCRIPT language=JavaScript>
function Run(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
//alert("ok");
}
catch(e)
{
alert('ÕÒ²»µ½ÎÄ ......
http://www.blogjava.net/19851985lili/articles/97664.html
ÄãµÄ´úÂë±¾ÉíÓÐÎÊÌ⣬һ°ãÀ´Ëµ£¬ÎÒÃÇÔÚʹÓÃStrutsʱ£¬Èç¹ûÒªÔÚJSPÒþʽµÄ´«Öµ¸øActionÓÐÁ½ÖÖÇé¿ö£º
1¡¢Òª´«µÄÖµÊÇfromBeanÖеÄÒ»¸ö×ֶΣ¬Äã˵µÄÇé¿öÓ¦¸Ã¾ÍÊÇÕâÖÖÇé¿ö£¬ÀýÈçÐèÒªÔÚEditÒ³ÃæÖб£´ætheID£¬ÔÚActionÖÐÖ´ÐÐUpdate²Ù×÷ʱ¸ù¾ÝIDÀ´¸üÐÂÊý¾Ý¿âµÄÖµ£¬Äã¿ÉÒ ......
Ò»¡¢ÔÚJSPÒ³ÃæÖжÁÈ¡±¾µØÎļþÄÚÈÝ£º
<%
try {
BufferedReader in = new BufferedReader(new FileReader("D:/test.txt"));
String file = "";
String temp = "";
&n ......