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

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µÄ°üÃû
  
  


Ïà¹ØÎĵµ£º

JspÖеÄCookie¶ÔÏó

     Cookie¶ÔÏóÊÇÓÉWeb·þÎñÆ÷²úÉúºó±£´æÔÚä¯ÀÀÆ÷ÖеÄÐÅÏ¢£¬Ëü¿ÉÒÔÓÃÀ´±£´æһЩСÁ¿µÄÐÅÏ¢ÔÚä¯ÀÀÆ÷ÖУ»¸Ã¶ÔÏó²»ÊôÓÚJspµÄÄÚÖöÔÏó£¬ËüÐèÒª¹¹Ôì²ÅÄÜʹÓÃ
1. ¹¹Ô죺
     Cookie cookie¶ÔÏóÃû=new Cookie(cookie±äÁ¿Ãû£¬cookieÖÐËù´æ´¢µÄ¶ÔÏó)
2. cookieµÄдÈëÓë¶ÁÈ¡
 &nbs ......

ÔÚLinuxÏ´ jsp »·¾³ÅäÖÃ

ºìÆì×ÀÃæLinux4.1Ï°²×°ºÍÅäÖÃJSP·þÎñÆ÷È«¹¥ÂÔ
ÕâÁ½ÌìÊÔ×ÅÔÚºìÆìLinux×ÀÃæ°æ4.1Ï°²×°WEB·þÎñÆ÷£¬Òѳɹ¦°²×°£¬ÏÖ°ÑÎҵݲװ¹ý³Ì½éÉÜÈçÏ£¬ÒÔ¸øÓÐÏàËÆÐèÇóµÄÍøÓѲο¼¡£
ÎҵݲװҪÇóÊÇÖ§³ÖJSP¡¢html¡¢htmÍøÒ³£¬ËùÒÔÑ¡ÓÃJDK1.5.0+Tomcat5.5.4+mySQL4.1.7£¬ÕâЩ¶¼Êǵ±Ç°¸÷Èí¼þ×îеÄÎȶ¨°æ±¾£¨·Ç²âÊ԰棩¡£ÔÝûÓа²×°Apacheº ......

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('ÕÒ²»µ½ÎÄ ......

actionÏòjsp´«ÖµÎÊÌâ×ܽá[zz]

http://www.blogjava.net/19851985lili/articles/97664.html
ÄãµÄ´úÂë±¾ÉíÓÐÎÊÌ⣬һ°ãÀ´Ëµ£¬ÎÒÃÇÔÚʹÓÃStrutsʱ£¬Èç¹ûÒªÔÚJSPÒþʽµÄ´«Öµ¸øActionÓÐÁ½ÖÖÇé¿ö£º
1¡¢Òª´«µÄÖµÊÇfromBeanÖеÄÒ»¸ö×ֶΣ¬Äã˵µÄÇé¿öÓ¦¸Ã¾ÍÊÇÕâÖÖÇé¿ö£¬ÀýÈçÐèÒªÔÚEditÒ³ÃæÖб£´ætheID£¬ÔÚActionÖÐÖ´ÐÐUpdate²Ù×÷ʱ¸ù¾ÝIDÀ´¸üÐÂÊý¾Ý¿âµÄÖµ£¬Äã¿ÉÒ ......

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ºÅ