ÈçºÎÓÃ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
Ïà¹ØÎĵµ£º
<body>
<%
Cookie[] cookies = request.getCookies() ;
Cookie cookie = null ;
if(cookies!=null){
cookie = cookies[0] ;
out.print("ÉϴηÃÎʵÄipÊÇ£º " + request.getRemoteAddr() +"<br>") ;&n ......
1¡¢Í¨¹ý<s:form
action="ÌøתҳÃæ">Ìá½»Öµ£¬µ«ÊÇÔÚ<s:form>±êÇ©ÖеÄactionºóÃæÖÁ¶àÖ»ÄܸúÒ»¸ö²ÎÊý£¬²¢ÇÒ»¹»á±¨¾¯¸æ£¬ËùÒÔÈç¹û
Ïë´«µÝ²ÎÊý¿ÉÒÔÓÃ<s:hidden name=""
values="username"></s:hidden>À´´«Öµ£¬µ«ÊÇÕý¹æµÄд·¨ÐèÒªÅäºÏ<s:set>±êÇ©À´ÓÃ
È磺
......
title: JSP·ÖÒ³¼¼ÊõʵÏÖ
summary:ʹÓù¤¾ßÀàʵÏÖͨÓ÷ÖÒ³´¦Àí
author: evan_zhao
email: evan_zhao@hotmail.com
¡¡¡¡Ä¿Ç°±È½Ï¹ã·ºÊ¹ÓõķÖÒ³·½Ê½Êǽ«²éѯ½á¹û»º´æÔÚHttpSession»òÓÐ״̬beanÖУ¬·Ò³µÄʱºò´Ó»º´æÖÐÈ¡³öÒ»Ò³Êý¾ÝÏÔʾ¡£ÕâÖÖ·½·¨ÓÐÁ½¸öÖ÷ÒªµÄȱµã£ºÒ»ÊÇÓû§¿ÉÄÜ¿´µ½µÄÊǹýÆÚÊý¾Ý£»¶þÊÇÈç¹ûÊ ......
JSPÖеÄÌøת£º
(1). forward()·½·¨
ʹÓõ½javax.servlet.RequestDispatcherÀà
RequestDispatcher rd = getServletContext().getRequestDispatcher("url");
rd.forward(requestVar,requestVar); //´«µÝservletµÄÈë¿Ú²ÎÊý
/*forwardº ......