È«Ãæ½âÎöjsp·¾¶ÎÊÌâ
Èç¹ûÔÚÒ»¸öÏîÄ¿ÖÐ µÄjspÖмÓÈëÒÔÉÏ´úÂë ÄÇôÊä³öµÄ½á¹û »áÊÇʲôÄØ£¿
½á¹û£º/ÏîÄ¿Ãû
ºÇºÇ ×Ô¼ºÔÀ´ÒÔΪֻ Êǵõ½ÏîÄ¿Ãû »òÕßÖ»Êǵõ½\"/\"¿´ÁË ÕæÊDz»ÊÔ²»ÖªµÀºÇºÇ
»¹ÓÐ ½ñÌìÔÚ×öÏîÄ¿µÄʱºòÎÞÒâÖз¢ÏÖµÄ
»¹ÓС°/¡± ´ú±íµÄÊÇwebÏîÄ¿µÄ¸ùĿ¼ Èç¹ûÔÚ¸ùĿ¼Ï½¨ÁËÎļþ¼Ð Ö±½Ó д³Éhref=\"page/index.html\"¼´¿É·ÃÎÊÒ³Ãæ ¶ø²»ÊÇ\"/page/index.html\"
ÔÚjsÀïÕâÑùд
document.write(¡¯¡¯);
document.write(¡¯netai¡¯);
document.write(¡¯{at}¡¯);
document.write(¡¯safemore.com¡¯);
document.write(¡¯¡¯);
ÔÚÒ³ÃæÉÏ°Ñjs ÒýÈ˺ó »á·¢ÏÖ³öÏÖÒ»¸ö Á´½Ó µã»÷¸ÃÁ´½Ó»áÖ±½ÓÁ´½Óµ½ÄúÉèÖõÄoutlookÉÏ Ö±½ÓÈç¹ûÉèÖùý ÄÇô¾ÍÖ±½Ó·¢ÐŸøÕâ¸öÓÊÏäÁË ºÃÍæ°É¡£
Ïà¹ØÎĵµ£º
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http- ......
1.request¶ÔÏó
¿Í»§¶ËµÄÇëÇóÐÅÏ¢±»·â×°ÔÚrequest¶ÔÏóÖУ¬Í¨¹ýËü²ÅÄÜÁ˽⵽¿Í»§µÄÐèÇó£¬È»ºó×ö³öÏìÓ¦¡£ËüÊÇHttpServletRequestÀàµÄʵÀý¡£
ÐòºÅ ·½ ·¨ ˵ Ã÷
1 object getAttribute(String name) ·µ»ØÖ¸¶¨ÊôÐÔµÄÊôÐÔÖµ
2 Enumeration getAttributeNames() ·µ»ØËùÓпÉÓÃÊôÐÔÃûµÄö¾Ù
3 String getCharacterEncoding() · ......
´Ó html Ò³Ã渴ÖƵ½ jsp Ò³Ãæ³öÏÖÂÒÂ룺
½« html µÄ <?xml version="1.0" encoding="UTF-8"?> ¸ÄΪ jsp µÄ
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> ¼´¿É½â¾öÎÊÌâ¡£
......
http://www.egzcn.com/article/webbc/JSP/2006-03-22/2003.html À´Ô´
ÕªÒª£ºËäÈ»session»úÖÆÔÚwebÓ¦ÓóÌÐòÖб»²ÉÓÃÒѾºÜ³¤Ê±¼äÁË£¬µ«ÊÇÈÔÈ»ÓкܶàÈ˲»Çå³þsession»úÖƵı¾ÖÊ£¬ÒÔÖÁ²»ÄÜÕýÈ·µÄÓ¦ÓÃÕâÒ»¼¼Êõ¡£±¾ÎĽ«ÏêϸÌÖÂÛsessionµÄ¹¤×÷»úÖƲ¢ÇÒ¶ÔÔÚJava web applicationÖÐÓ¦ÓÃsession»úÖÆʱ³£¼ûµÄÎÊÌâ×÷ ......
ת×Ô£ºhttp://www.blogjava.net/beansoft/archive/2007/11/09/159374.html
¼ÙÉèÓÐÒ»¸ö·Ç³£Î£ÏÕµÄÈÎÎñ, ÊǾÅËÀÒ»Éú. ÐèÒªÄã´§×ÅÕ¨Ò©°ü´Ó±±Æ½¿ª³µ×߸ßËÙ·¹ý±£¶¨È¥Ê¯¼Òׯ°Ñ¹í×ӵĵﱤ¸øÕ¨ÁË. ×¢Òâ: Õâ¸öÈÎÎñÊ®·Ö¼è¾Þ, ÓпÉÄÜ°ë·ըҩ±¬Õ¨. ËùÒÔ³ö·¢Ç°ÄãÐèÒª¿àÁ·10ÔªÒ»±¾µÄ<<Ìú²¼ÉÀ>>, »¹ÐèÒªÁ¢ÒÅÖö½»´úһϺóÊÂ. ......