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

jspµÄÄÚÖöÔÏó¡¢¹¦ÄÜÒÔ¼°Ö÷Òª·½·¨

jspµÄÄÚÖöÔÏó¡¢¹¦ÄÜÒÔ¼°Ö÷Òª·½·¨
JspÄÚÖöÔÏó ¹¦ÄÜ Ö÷Òª·½·¨
out  Ïò¿Í»§¶ËÊä³öÊý¾Ý print() println() flush() clear() isAutoFlush() getBufferSize()   close() …………
request Ïò¿Í»§¶ËÇëÇóÊý¾Ý getAttributeNames() getCookies() getParameter() getParameterValues() setAttribute() getServletPath() …………..
response ·â×°ÁËjsp²úÉúµÄÏìÓ¦£¬È»ºó±»·¢Ë͵½¿Í»§¶ËÒÔÏìÓ¦¿Í»§µÄÇëÇó addCookie() sendRedirect() setContentType()
flushBuffer() getBufferSize() getOutputStream()
sendError() containsHeader()……………
application  
config ±íʾServletµÄÅäÖ㬵±Ò»¸öServlet³õʼ»¯Ê±£¬ÈÝÆ÷°ÑijЩÐÅϢͨ¹ý´Ë¶ÔÏ󴫵ݸøÕâ¸öServlet getServletContext() getServletName() getInitParameter()   getInitParameterNames()……………
page JspʵÏÖÀàµÄʵÀý£¬ËüÊÇjsp±¾Éí£¬Í¨¹ýÕâ¸ö¿ÉÒÔ¶ÔËü½øÐзÃÎÊ flush()………
pagecontext ΪJSPÒ³Ãæ°ü×°Ò³ÃæµÄÉÏÏÂÎÄ¡£¹ÜÀí¶ÔÊôÓÚJSPÖÐÌØÊâ¿É¼û²¿·ÖÖмº¾­ÃüÃû¶ÔÏóµÄ¸ÃÎÊ forward() getAttribute() getException() getRequest() getResponse()   getServletConfig()
getSession() getServletContext() setAttribute()
removeAttribute() findAttribute() …………… 
session ÓÃÀ´±£´æÿ¸öÓû§µÄÐÅÏ¢£¬ÒÔ±ã¸ú×Ùÿ¸öÓû§µÄ²Ù×÷״̬ getAttribute() getId()   getAttributeNames() getCreateTime() getMaxInactiveInterval()
invalidate() isNew()
exception ·´Ó³ÔËÐеÄÒì³£ getMessage()…………


Ïà¹ØÎĵµ£º

È«Ãæ½âÎöjsp·¾¶ÎÊÌâ


Èç¹ûÔÚÒ»¸öÏîÄ¿ÖÐ µÄjspÖмÓÈëÒÔÉÏ´úÂë ÄÇôÊä³öµÄ½á¹û »áÊÇʲôÄØ£¿
½á¹û£º/ÏîÄ¿Ãû 
ºÇºÇ ×Ô¼ºÔ­À´ÒÔΪֻ Êǵõ½ÏîÄ¿Ãû »òÕßÖ»Êǵõ½\"/\"¿´ÁË ÕæÊDz»ÊÔ²»ÖªµÀºÇºÇ
»¹ÓÐ ½ñÌìÔÚ×öÏîÄ¿µÄʱºòÎÞÒâÖз¢ÏֵĠ
»¹ÓС°/¡± ´ú±íµÄÊÇwebÏîÄ¿µÄ¸ùĿ¼ Èç¹ûÔÚ¸ùĿ¼Ï½¨ÁËÎļþ¼Ð Ö±½Ó д³Éhref=\"p ......

ÔÚJSPÀïµ÷ÓÃspring¹ÜÀíµÄbeanÈ¡µÃÊý¾Ý


Ò»£ºweb.xmlÅäÖÃ
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>
org.springframework.web.context.ContextLoaderServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<context-param>
<param-name>cont ......

jsp servletÖеĹýÂËÆ÷FilterÅäÖÃ×ܽá

Ô­ÎĵØÖ·£ºhttp://hi.baidu.com/wangking/blog/item/8a109423ff3d2341ac34dec9.html
ÔÚJava web¿ª·¢Öг£»áʹÓõ½¹¦ÄÜÇ¿´óµÄ¹ýÂËÆ÷£¬Ëû±Ï¾¹ÄܸøÎÒÃÇ´øÀ´ºÜ´óµÄ·½±ã£¬µ«ÊÇÕë¶Ô¹ýÂ˵Ä×ÊÔ´ÎÒÃÇÐèÒªÏêϸµÄÁ˽âËûÃÇÔÚweb.xmlÖеÄÅäÖÃÐÅÏ¢¡£Õâ¸ö¸ù¾Ý¼¸ÖÖ³£ÓõIJ»Í¬Çé¿ö½øÐÐÁË×ܽ᣺
1¡£Èç¹ûÒªÓ³Éä¹ýÂËÓ¦ÓóÌÐòÖÐËùÓÐ×ÊÔ´£º
< ......

jspѧϰ±Ê¼Ç2

JSPµÄ×¢ÊÍ
<%--........--%>
JSPÖ¸ÁîºÍJSP¶¯×÷£¨±ê×¼µÄJSP±êÇ©£©
JSPÖ¸ÁîµÄÓï·¨
<%@... ....%>
<%@include file="...."%> °üº¬Ö¸Á°üº¬Ö¸Áî»á½«Òª°üº¬µÄÎļþ´úÂëÔ­ÑùÊä³öµ½±¾Ò³Ã棨ÔÚ·­Òëʱ°Ñ°üº¬ÎļþµÄÄÚÈÝÒýÈë²¢ºÏ²¢£©£¬²»½øÐз­Ò룬fileÊôÐÔÖƶ¨Òª°üº¬µÄÎļþµÄÃû×Ö£¨×¢ÒâÒª°üº¬µÄÎļþµÄ·¾¶£©£ ......

´¿JSP·ÖÒ³´úÂëÖ®sqlserver2005/2008

ÉÏһƪ·ÖÒ³ÎÄÕ£¬ÊÇÓÃÓÚmysql£¬ÉÔ΢ÐÞ¸ÄÏ£¬ÓÃÓÚSqlserver2005/2008£¬Ã»ÓÐÒì³£´¦Àí¡£Ã»Óп¼ÂÇÐÔÄܵȡ£
ÏÖ½«´úÂëÌù³ö£¬ÒÔ¹©³õѧÕ߲ο¼£º
×¢£ºÑûÔÂʹÓû·¾³Eclipse 3.4.2+Tomcat 6.18+Sqlserver2005 sp3µ÷ÊԳɹ¦¡£
Ò³ÃæpagelistDemo.jspÄÚÈÝ£º
Code
<%@ page language="java" contentType="text/html; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ