Webæç¨ç¨å¼çéç¼èå³çµ±çå®æ©ç¨å¼éç¼å¨æ¬è³ªä¸åå¨è太å¤çå·®ç°ï¼Webæç¨ç¨å¼éç¼äººå¡è³ä»ä¸å¯é¿å
çå¿
é èçHTTPçç´°ç¯ï¼èHTTPç¡çæ
çï¼statelessï¼æ¬è³ªï¼èå³çµ±æç¨ç¨å¼å¿
é ç¶æç¨å¼éè¡éç¨ä¸çè³è¨ææ顯çéèï¼ååWebæç¨ç¨å¼é¢å°ç¶²ç«ä¸ä¸åç使ç¨è
åæçååï¼å
¶å·è¡ç·å®å
¨åé¡ä»¥åè³æé©èãè½æèççåé¡ï¼åæ¯è¤éä¸é£ä»¥è§£æ±ºçã
å¦ä¸æ¹é¢ï¼æ¬è³ªä¸æ¯éæ
çHTMLèæ¬è³ªä¸æ¯åæ
çæç¨ç¨å¼åæ¯ä¸é
éèï¼éé æä¸å¯é¿å
çï¼èç網é è¨è¨çç¾è¡äººå¡èç¨å¼è¨è¨äººå¡ï¼å¿
é 被彼æ¤å å
¥è³è¦åå
件ä¸çé輯äºç¸å¹²æ¾ï¼å³ä¾¿ä¸äºè¦ååç¾é輯以æ¨ç±¤çæ¹å¼åç¾ï¼è©¦åså±ç¾å°ç¶²é è¨è¨ç¾è¡äººå¡ç親åï¼ä½å®çµç©¶å¿
é ç½æ¶å°ç¸éçæµç¨é輯ã
æå¾å¤æ¹æ¡è©¦è解決種種çå°å¢ï¼èåèªçèç¼é»åä¸ç¸åï¼æçå¾ç¨å¼è¨è¨äººå¡çè§åº¦ä¾è§£æ±ºï¼æçå¾ç¶²é è¨è¨äººå¡çè§åº¦ä¾è§£æ±ºï¼å種çæ¡æ¶è¢«æåºï¼æé æçæ¯å種ä¸çµ±ä¸çæ¨ç±¤èæ¡æ¶ï¼çºäºä¿é²ç¢è½çæ´åéç¼ç°å¢ï¼IDEï¼é£ä»¥æ´åéäºæ¨ç±¤èæ¡æ¶ï¼å¦ä¸æ¹é¢ï¼éç¼äººå¡çå¸ç¿è² æä¹ä¸æ·çå éï¼ä»åå¿
é ä¸äººç解å¤åè§è²çå·¥ä½ã
JavaServer Faces [
http://java.sun.com/j2ee/javaserverfaces/] çæåºå¨è©¦å解決éååé¡ï¼å®è©¦åå¨ä¸åçè§åº¦ä¸æä¾ç¶²é è¨è¨äººå¡ãæç¨ç¨å¼è¨è¨äººå¡ãå
件éç¼äººå¡è§£æ±ºæ¹æ¡ï¼è®ä¸åæè¡ç人å¡å¯ä»¥å½¼æ¤åä½åä¸äºç¸å¹²æ¾ï¼å®ç¶åäºåå®¶å» åç¾æçæè¡ç¹é»ï¼ç±Java Community Processï¼JCPï¼åéç æ¬åºä¾çä¸å¥æ¨æºï¼ä¸¦å¨2004å¹´ä¸æç¼è¡¨äºJavaServer Faces 1.0實ä½ææã
å¾ç¶²é è¨è¨äººå¡çè§åº¦ä¾çï¼JavaServer Facesæä¾äºä¸å¥åæ¯æ°çæ¬çHTMLæ¨ç±¤ï¼ä½å®ä¸æ¯éæ
çï¼èæ¯åæ
çï¼å¯ä»¥èå¾ç«¯çåæ
ç¨å¼çµåï¼ä½ç¶²é è¨è¨äººå¡ä¸éè¦çæå¾ç«¯çåæ
é¨ä»½ï¼ç¶²é è¨è¨äººå¡çè³ä¸å¤ªéè¦æ¥è§¸JSTLéé¡çæ¨ç±¤ï¼ä¹å¯ä»¥åæ
çå±ç¾è³æï¼åæ¯åæ
çæ¥è©¢è¡¨æ ¼å
§å®¹ï¼ï¼JavaServer Facesæä¾æ¨æºçæ¨ç±¤ï¼éå¯ä»¥è網é 編輯ç¨å¼çµåå¨ä¸èµ·ï¼å¦ä¸æ¹é¢ï¼JavaServer Facesä¹å
許æ¨èªè¨æ¨ç±¤ã
å¾æç¨ç¨å¼è¨è¨äººå¡çè§åº¦ä¾çï¼JavaServer Facesæä¾ä¸åèå³çµ±æç¨ç¨å¼éç¼ç¸é¡ä¼¼ç模åï¼ç¶ç¶å æäºæ¬è³ªä¸çå·®ç°ï¼æ¨¡åéæ¯ç¨æä¸åï¼ï¼ä»åå¯ä»¥åºæ¼äºä»¶é©
åä¾éç¼ç¨å¼ï¼ä¸å¿
éåHTTPçèçç´°ç¯ï¼å¦æå¿
é èçä¸äºè¦è¦ºå
件ç屬æ§ç話ï¼ä»åä¹å¯ä»¥ç´æ¥å¨æ´åéç¼ç°å¢ä¸ææéäºå
件ï¼é»é¸è¨å®å
件ç屬æ§ï¼JavaServer Facesçè³éçºæç¨ç¨å¼è¨è¨äººå¡èçäºç©ä»¶èå串ï¼HTTPå³éæ¬è³ªä¸å°±æ¯å串ï¼éä¸å¹é
çè½æåé¡ã
å¾UIå
件éç¼äººå¡çè§åº¦ä¾çï¼ä»åå¯ä»¥è¨è¨éç¨çUIå
件ï¼è®æç¨ç¨å¼çéç¼ç¢è½æé«ï¼å°±å¦åå¨è¨è¨Swingå
件çï¼UIéç¼äººå¡å¯ä»¥ç¨ç«éç¼ï¼åªè¦å®ç¾©å¥½ç¸éç屬æ§é¸é
ä¾èª¿æ´ç´°ç¯ï¼èä¸ç¨åå°ç¶²é è¨è¨äººå¡ææç¨ç¨å¼è¨è¨äººå¡çå¹²æ¾ã
ä¸åè§è²çç¥èé åååä¸å¯ä»¥äºä¸å¹²æ¾ï¼æ ¹ææ¨çè§è²ï¼æ¨åªè¦ç解å
¶ä¸ä¸åç¥èé åï¼å°±å¯ä»¥éç¨JavaServer Facesï¼å
¶å®è§è²çç¥èé åæ¨å¯ä»¥ä¸ç¨ç解太å¤ç´°ç¯ã
ç¶ç¶ï¼å°±å
¶ä¸ä¸åè§è²å®ç¨ä¾çï¼JavaServer Facesé±èäºè¨±å¤ç´°ç¯ï¼è¥è¦å
¨ç¤ç解ï¼å
¶å¯¦JavaServer Facesæ¯è¤éçï¼æ¯ä¸åèççç°å¢é½å¼å¾æ·±å
¥æ¢è¨ï¼æ以å¸ç¿JavaServer Facesæï¼æ¨è¦é¸æçæ¯éç¤ç解ï¼éæ¯å¾ä½¿ç¨çè§åº¦ä¾ç解ï¼é就決å®äºæ¨å¸ç¿ææè¦è±è²»çå¿åã
è¦ä½¿ç¨JSFï¼é¦å
æ¨è¦å
åå¾JavaServer Facesåè實ä½ï¼JavaServer Faces Reference Implementationï¼ï¼å¨å°ä¾ï¼JSFæèContaineræ´åå¨ä¸èµ·ï¼å±ææ¨åªè¦ä¸è¼æ¯æ´çContainerï¼å°±å¯ä»¥ä½¿ç¨JSFçåè½ã
è«è³ JSF å®æ¹ç¶²ç«ç
ä¸è¼å [
http://java.sun.com/j2ee/javaserverfaces/download.html] ä¸è¼åè實ä½ï¼å¨ä¸è¼å£ç¸®æªä¸¦è§£å£ç¸®ä¹å¾ï¼å°å
¶ lib ç®éä¸ç jar æªæ¡è¤è£½è³æ¨çWebæç¨ç¨å¼ç/WEB-INF/libç®éä¸ï¼å¦å¤æ¨ééè¦ jstl.jar è standard.jar æªæ¡ï¼éäºæªæ¡æ¨å¯ä»¥å¨ sample ç®éä¸ï¼è§£å£ç¸®ç¶ä¸çä¸åç¯ä¾ï¼å¨å®ç/WEB-INF/libç®éä¸æ¾å°ï¼å°ä¹ä¸ä½µè¤è£½è³æ¨çWebæç¨ç¨å¼ç/WEB-INF/libç®éä¸ï¼æ¨ç¸½å
±éè¦ä»¥ä¸çæªæ¡ï¼
- jsf-impl.jar
- jsf-api.jar
- commons-digester.jar
- commons-collections.jar
- commons-beanutils.jar
- jstl.jar
- standard.jar
æ¥ä¸ä¾é
ç½®Webæç¨ç¨å¼çweb.xmlï¼ä½¿ç¨JSFæï¼ææçè«æ±é½ééFacesServletä¾èçï¼æ¨å¯ä»¥å¦ä¸å®ç¾©ï¼
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<description>
JSF Demo
</description>
<display-name>JSF Demo</display-name>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>
javax.faces.webapp.FacesServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
å¨ä¸é¢çå®ç¾©ä¸ï¼æåå°ææ.facesçè«æ±äº¤ç±FaceServletä¾èçï¼FaceServletæåèµ·ç¸å°ç.jsp網é ï¼ä¾å¦è«æ±æ¯ /index.facesç話ï¼å實éä¸æåèµ·/index.jsp網é ï¼å®æ以ä¸çé
ç½®ï¼æ¨å°±å¯ä»¥éå§ä½¿ç¨JSFäºã
分享到:
相关推荐
IMMC2023ç§å£èµ_Contest questions.zip å°±æ³å°ä»£è¡¨ç¤ºæ±ä»£è¡£ä»·æ ¡äžäžªçšæ²¡æœ‰ç§å®¶æ¶éŽIMMC2023ç§å£èµæµ...
“°Ô”×÷Ó㬲»Ö»±íʾ³É¹¦¡¢³ö·³¡£ÈçÔÚÓ¢¹ú³öÏֵġ°²»ÂäµÛ¹ú¡±¡£²»ÂäµÛ¹ú²»Ôõ°Ô¡£²»Ôõ°Ô¡£²»Ôõ°Ô¡£²»Ôõ°Ô¡£²»Ô...
ÔΡ¢Ö®Ç°²»¿ÉÉèÖøµÄÎÈÈç×÷ÓõÈÖ¢×´£¬²»¹ýÎÈÈçÎÈÈçÖ®ºó£¬ÎÈÈç×ö³ö×ÔÈ»×îºó¿ÉÄÜ»á×ö³öÎÈÈçÎÈÈç¡£ÎÈÈçÎÈÈç×ö³ö...
ֵġ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡...
ÏË®°üÀ¨ÉúÎïÖÆÒ©¡¢»¯Ñ§ÖÆÒ©ºÍÖвÝÒ©Éú²ú¡£ÉúÎïÖÆÒ©·ÏË®Ö÷Òªº¬Óв¡·¿²¡¿¿¡¢ÖÜ¿¡¡¢Éú²ú¹ý³ÌÖв¡¿¡¡¢²¡¿¡¡¢²¡¿...
ÎÒÖªµÀ²¿ÃÅÖеÄÈÎÎñ²»ÈçºÎÈÝÒ×£¬²»ÈçºÎÈÝÒ׳ɹ¦¡£ÎÒÖªµÀ³ÉΪ²¿ÃųÉÔ±£¬ÎÒ²»Ö»ÊÇΪ×Ô¼º²úÉúÖµ£¬»¹ÒªÎªÉè¼ÆÈý...
λ²»±äµÄÇ°ÌáÏÂ,²åÈëΪ×ÔÈ»¹ÜÀí¡£×ÔÈ»¹ÜÀí²»Ö¹ÊÇÈýά¿¿¿¿Ö®Ò»¡£ÎÒ»áÉêÇëºÍѧԺ¹ÜÀí²¿·Ö×é³É¹¤×÷×飬×ö³ö³É¹...
6. **3.6æ¹è¿åæ°åå¾åä¸ç´çº¿ç¹å¾çå¿«éæ£æµæ¹æ³.rar**:这可能涉及到图像旋转、剪切和缩放等几何变换,是图像处理中常见的操作。...
10°²È«·À»á×é:²ÉÓúÜÈÝÒ×±ÜÃâ¡¢°²È«¿ªÍË¡¢×éÖ¯·À»ðÉ豸²¢×éÖ¯ÈËÔ±¿ªÊ¼×éÖ¯°²È«ÉîÈë²é¿´¡£Èý×éÖ®¼äÓ¦³Ö³ÉºÜºÃ...
½·¨¿ÉÒÔ×îÖÕ±ÜÃâÔ±¹¤Î¥¹æºó²»»á³öÏÖ³ö²»³É¹¦µÄ³õ²»²ÉÓá£ÀýÈç¡£ºþ±±ÈºÒÕÔ±¹¤µÄ»ý·Ö¿ÉÒÔÖ®ºó¿É±ä³ÉÔ±¹¤×ÔÎÒ¼...
¸ ¨« £˚¶ : 1¡¢¡`¿ »"ˇ´ ¨¸ª˜ —, ˛" ——¿˜ —¨`¸ ¡¶£ »·ł—"ˆ¯¡£ 2¡¢ »"¸—— »˚ˇ ˜¿·——˛˜ …, ¨˘˚˙»—'¿·¸˘—¨ ˜—¡˛ˇ ¡£ 3¡¢ »"¸–ª «˜...
½¡£ÎïÒµ¹ÜÀíίÍðºÍºÏ֮ͬºÏ£¬ÎïÒµ¹ÜÀ...¡£ÎïÒµ¹ÜÀíίÍðºÍÎïÒµ¹ÜÀíºÏ֮ͬǰ£¬ÎïÒµ¹ÜÀíÉçÇøºÍÎïÒµ¹ÜÀíÔ±Ó¦×öºÃ×Ô...
ÎÄ×÷Ö®Ö®ºó£¬ÎÒÃÇ¿ÉÒÔÈ·ÈÏ¡°i-ying¡±¹«Ë¾³ÉΪһÖÖ²ÎÓë×éÖÖÉç»á·þÎñ²úÉú¡¢×éÖÖ×éºÏ¡¢Éç»á¿Æѧ¡¢³É³öºóµÄÎïÖʱ£Õ...
½ÎÄ»¯ÖУ¬Èå¼ÒÎÄ»¯ÉèÖÃÁËÒ»Öֿɱä×éºÏµÄ·ç¿Ø·çÖÊ£¬×ÔÈ»ºÍ³£³£³ÉΪ¹Ø¼ü×Ö·ç¿Ø¡£ÎªÁËÈçºÎ³ÉΪһÖÖ¿ÉÔ¤¿¼²î²»¶...
ÎÒÖªµÀÎÒÓ¦¸Ã×·ÇóÎÒ×Ô¼ºµÄÖ°ÒµÉúÑÄ¡£ÎÒ²»³ýÁËΪ×Ô¼ºÖªµÀÎÒ×÷Ϊ×Ô¼º¡£ÎÒ²»ÖªµÀΪ×Ô¼ºÖªµÀÎÒ×öΪÎÒ×Ô¼º¡£ÎÒÖª...
opencv学习程序集合例2-1显示照片 #include "stdafx.h" #include ...函¡¥数ºy等̨¨待äy按ã¡ä键¨¹,ê?按ã¡ä键¨¹盘¨¬任¨?意°a键¨¹就¨ª返¤¦Ì回? waitKey(); return 0;}
ɨÂë¹Ø×¢¹«ÖںŲËÄñѧ°²È«£¬»ñÈ¡¸ü¶à×ÊÔ´
断±ä³ÉÇ°Ö÷ÒªµÄÒ»²¿·Ö£¬ÒòΪζȲÎÓëÁ˺ܶಿ·ÖµÄ¹¤³Ì²úÉú¡£ÔÚ±ê×¼µÄζȼì²âϵͳÖУ¬ÔÉù²ÉÓÃPTC (Positive Temperature ...
¨ 8¡¢ ¡—¯ˇ¢ ¨«¡–—˜¡—¯ˇ¢¡–˚˙ £¤ £'¡£ A¡¢—˛˚ ·˜˚ B ¡¢…˘¸ª»œ˝ł´ ˚`ˇ˚… ˝ł´£ ¨—˙¨¤ ˙º`"ˇ˝ł » '§ˇº »` C¡¢—¯ˇ¢–¡¢—¯ˇ¢·ƒ ...
金典实例,数据结构光盘资源。 /* ´Ë³ÌÐòΪȫ¹ú½»Í¨×ÉѯģÄ⣻ ¾ßÓн»Í¨ÏµÍ³... ¿ª·¢Ê±¼äÊÇ2003.10¡ª¡ª2003.12£» ´Ë³ÌÐòΪ×îÖÕ°æ±¾£» */