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

ÈçºÎÓÃJBoss ÔËÐÐÏà¹ØµÄJSP³ÌÐò

                                                 ÈçºÎÓÃJBoss ÔËÐÐÏà¹ØµÄJSP³ÌÐò
  
                                                                 ×÷ÕߣºÒÁËÕ                              
                                     
 ¡ñJBossÈí¼þµÄÏÂÔØÓë°²×°
 
                  1.ÏÂÔØJBossÈí¼þ¡£
                  2.°²×°JBossÈí¼þ£¬Ö»Òª°´Ìáʾһ²½²½ÍùÏÂ×ß¼´¿É¡£
                  3.ÉèÖû·¾³±äÁ¿ÈçÏ£¨JBossµÄ°²×°Ä¿Â¼Îª£ºC:\jboss-5.1.0.GA )£º
                             JBoss_HOME:  C:\jboss-5.1.0.GA
                             Pa


Ïà¹ØÎĵµ£º

¹ØÓÚjspÖеÄcookieС³ÌÐò

<body>
 <%
   Cookie[] cookies = request.getCookies() ;
   Cookie cookie = null ;
   if(cookies!=null){
     cookie = cookies[0] ;
     out.print("ÉϴηÃÎʵÄipÊÇ£º " + request.getRemoteAddr() +"<br>") ;&n ......

ÔÚstruts2ÖдÓjspÒ³Ãæ´«Öµµ½actionÖÐ

1¡¢Í¨¹ý<s:form
action="ÌøתҳÃæ">Ìá½»Öµ£¬µ«ÊÇÔÚ<s:form>±êÇ©ÖеÄactionºóÃæÖÁ¶àÖ»ÄܸúÒ»¸ö²ÎÊý£¬²¢ÇÒ»¹»á±¨¾¯¸æ£¬ËùÒÔÈç¹û
Ïë´«µÝ²ÎÊý¿ÉÒÔÓÃ<s:hidden name=""
values="username"></s:hidden>À´´«Öµ£¬µ«ÊÇÕý¹æµÄд·¨ÐèÒªÅäºÏ<s:set>±êÇ©À´ÓÃ
È磺
......

JSP·ÖÒ³¼¼ÊõʵÏÖ

title: JSP·ÖÒ³¼¼ÊõʵÏÖ
summary:ʹÓù¤¾ßÀàʵÏÖͨÓ÷ÖÒ³´¦Àí
author: evan_zhao
email: evan_zhao@hotmail.com
¡¡¡¡Ä¿Ç°±È½Ï¹ã·ºÊ¹ÓõķÖÒ³·½Ê½Êǽ«²éѯ½á¹û»º´æÔÚHttpSession»òÓÐ״̬beanÖУ¬·­Ò³µÄʱºò´Ó»º´æÖÐÈ¡³öÒ»Ò³Êý¾ÝÏÔʾ¡£ÕâÖÖ·½·¨ÓÐÁ½¸öÖ÷ÒªµÄȱµã£ºÒ»ÊÇÓû§¿ÉÄÜ¿´µ½µÄÊǹýÆÚÊý¾Ý£»¶þÊÇÈç¹ûÊ ......

jspÒ³ÃæÌøת·½·¨´óÈ«

JSPÖеÄÌøת£º
(1). forward()·½·¨
    ʹÓõ½javax.servlet.RequestDispatcherÀà
    RequestDispatcher rd = getServletContext().getRequestDispatcher("url");
    rd.forward(requestVar,requestVar); //´«µÝservletµÄÈë¿Ú²ÎÊý
    /*forwardº ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ