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

ÔÚjspÀïʹÓÃCookie

дCookie£º
   //´Óä¯ÀÀÆ÷È¡µÃÓû§Ãû
        String username = request.getParameter("username");
        //´Óä¯ÀÀÆ÷È¡µÃÃÜÂë
        String password = request.getParameter("password");
        //ÉèÖÃCookie
        Cookie userCookie = null;
        Cookie passCookie = null;
        //È¡µÃ¿Í»§¶ËµÄCookie
        //Èç¹ûusernameºÍpasswordÂú×ãÌõ¼þÔò½øÈësuccess.jsp
        if ("admin".equals(username) && "1".equals(password)) {
            userCookie = new Cookie("username", username);
            passCookie = new Cookie("password", password);
            userCookie.setMaxAge(20);
            passCookie.setMaxAge(20);
            response.addCookie(userCookie);
            response.addCookie(passCookie);
            response.sendRedirect("../success.jsp");
        }
¶ÁCookie£º
     String username = new String();
        String password = new String();
        //È¡µÃ¿Í»§¶ËµÄCookie
        Cookie[] cookies = request.getCookies();
        //Èç¹ûÈ¡µÃ³É¹¦
        if (cookies != null) {
  


Ïà¹ØÎĵµ£º

JSP requestËùÓз½·¨Àý×Ó

<%
//header.jsp
out.println("Protocol: " + request.getProtocol() + "<br>");
out.println("Scheme: " + request.getScheme() + "<br>");
out.println("Server Name: " + request.getServerName() + "<br>" );
out.println(&quo ......

jspÒ³Ãæ URL´«ÖÐÎIJÎÊýµ½ActionÀïÃæ³öÏÖÂÒÂë

½â¾ö·½·¨£º
µÚÒ»ÖÖ£ºÔÚActionÖÐÓà new String(str.getBytes("ISO8859_1"), "UTF8")£¬½øÐÐתÂ룬ÒòΪ´«µÝµÄʱºò£¬ÖÐÎÄĬÈ˵ÄÊÇISO8859_1
 
µÚ¶þÖÖ£º¿Éͨ¹ýÅäÖÃTOMCATÀ´½â¾ö´ËÎÊÌ⣬¾ßÌå½â¾ö·½·¨ÈçÏ£ºÔÚtomcatµÄserver.xmlÀÕÒµ½<Connector port="8080" useBodyEncodingForURI="true" URIEncoding="utf-8"> ......

applet ǶÈëjsp µÈ´«²ÎÊýÎÊÌâ

СµÜ×î½ü¹«Ë¾×öÒ»¸ö±à¼­Æ÷£¬×îºóÑ¡ÔñÓÃappletС³ÌÐòǶÈëjsp ÖÐ
Ï൱ÓÚÒ»¸ö¿ØÖÆ£¬×ܽá·ÖÏíһϣº
Ö÷ÒªÅöµ½ÒÔÏÂÎÊÌ⣺
1£¬´«²ÎÊýÎÊÌ⣺
applet-->jsp:
<applet code="rubikApp.class" archive="rubik.jar" width="300" height="300">
<param name="beta" ......

jspÔËÐл·¾³µÄÅäÖÃ

      Õâ¶Îʱ¼äÔÚѧϰJSP£¬×ÜÌåÀ´Ëµ£¬JSPѧϰÆðÀ´¸Ð¾õ»¹²»´í£¬²»ÖªµÀÊDz»ÊÇÓÐÁËJAVAµÄ¹¦µ×£¬Ã»¸Õ¸Õ¿ªÊ¼Ñ§Ï°CÓïÑÔµÄʱºòÄÇô³ÔÁ¦¡£²»¹ÜÊÇҪѧϰJSP»¹ÊÇÆäËû±à³ÌÓïÑÔ£¬ÎÒÃǶ¼Ó¦¸ÃÄÜѧ»á×Ô¼ºÊìÁ·µÄ°²×°ºÍÅäÖÃÐèÒªÓõ½µÄ¿ª·¢Èí¼þ¡£ÓÐÁË¿ª·¢Èí¼þ¾Í»áʰ빦±¶¡£Ð´´úÂëÒ²»á¸ü¿ì½ÝºÍ·½±ã£¬ÓÐЩ¹Ø¼ü´Ê»ò´íÎ ......

FCKeditor2.6 for JSP ÅäÖ÷½·¨

1¡¢Ê×Ïȵǽwww.fckeditor.net/downloadÏÂÔØFCKeditorµÄ×îа汾£¬ÐèÒªÏÂÔØ2¸öѹËõ°ü£¬Ò»¸öÊÇ»ù±¾Ó¦Óã¬ÁíÒ»¸öÊÇÔÚΪÔÚjspÏÂËù×¼±¸µÄÅäÖá£
      FCKeditor 2.6 ÏÂÔØµØÖ·£ºsourceforge.net/project/downloading.php
      FCKeditor.Java ÏÂÔØµØÖ·£ºsourceforge.net/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ