1.eclipseå¦ä½å¯¼å
¥javax.servlet.*
2.Requestattribute å±äºåªä¸ªjar
eclipseå¦ä½å¯¼å ¥javax.servlet.
* æ¹æ³ï¼å¨ç½ä¸ä¸è½½servlet-api.jarè¿ä¸ªå ï¼
2. å¨tomcatçlibè·¯å¾ä¸æ¾å°è¿ä¸ªå ï¼C:\apache-tomcat-6.0.\libç´æ¥å°jarå å¤å¶ç²è´´å°JDKç®å½ä¸å¹¶ä¸è½èªå¨å¼å ¥ï¼æ以å³é®åå»å·¥ç¨->properties->Java Build Path->Libraries->Add External JARs...->servlet-api.jar
3ã红è²ä¸å线æ¥éå°±ä¼æ¶å¤±ã
æå±ç¥è¯ï¼
Eclipse æ¯ä¸ä¸ªå¼æ¾æºä»£ç çãåºäºJavaçå¯æ©å±å¼åå¹³å°ãå°±å ¶æ¬èº«èè¨ï¼å®åªæ¯ä¸ä¸ªæ¡æ¶åä¸ç»æå¡ï¼ç¨äºéè¿æ件ç»ä»¶æ建å¼åç¯å¢ã幸è¿çæ¯ï¼Eclipse é带äºä¸ä¸ªæ åçæ件éï¼å æ¬Javaå¼åå·¥å ·ï¼Java Development Kitï¼JDKï¼ã
avaåjavaxé½æ¯JavaçAPI(Application Programming Interface)å ï¼javaæ¯æ ¸å¿å ï¼javaxçxæ¯extensionçææï¼ä¹å°±æ¯æ©å±å ãjavaç±»åºæ¯javaåå¸ä¹å就确å®äºçåºç¡åºï¼èjavaxç±»åºåæ¯å¨ä¸é¢å¢å çä¸å±ä¸è¥¿ï¼å°±æ¯ä¸ºäºä¿æçæ¬å ¼å®¹è¦ä¿ååæ¥çï¼ä½æäºä¸è¥¿æäºæ´å¥½ç解å³æ¹æ¡ï¼æ以ï¼å°±å ä¸äºï¼å ¸åçå°±æ¯awt(Abstract Windowing ToolKit) åswingã
主è¦ç»æï¼
Eclipseæ¯ä¸ä¸ªå¼æ¾æºä»£ç ç软件å¼å项ç®ï¼ä¸æ³¨äºä¸ºé«åº¦éæçå·¥å ·å¼åæä¾ä¸ä¸ªå ¨åè½çãå ·æåä¸åè´¨çå·¥ä¸å¹³å°ãå®ä¸»è¦ç±Eclipse项ç®ãEclipseå·¥å ·é¡¹ç®åEclipseææ¯é¡¹ç®ä¸ä¸ªé¡¹ç®ç»æï¼å ·ä½å æ¬å个é¨åç»æââEclipse PlatformãJDTãCDTåPDEãJDTæ¯æJavaå¼åãCDTæ¯æCå¼åãPDEç¨æ¥æ¯ææ件å¼åï¼Eclipse Platformåæ¯ä¸ä¸ªå¼æ¾çå¯æ©å±IDEï¼æä¾äºä¸ä¸ªéç¨çå¼åå¹³å°ã
Eclipse Platformå è®¸å·¥å ·å»ºé è ç¬ç«å¼åä¸ä»äººå·¥å ·æ ç¼éæçå·¥å ·ä»èæ é¡»å辨ä¸ä¸ªå·¥å ·åè½å¨åªéç»æï¼èå¦ä¸ä¸ªå·¥å ·åè½å¨åªéå¼å§ã
åèèµæï¼
eclipseï¼éæå¼åç¯å¢ï¼_ç¾åº¦ç¾ç§
Requestattribute å±äºåªä¸ªjar
libæ件夹ä¸å°±æé£ä¸¤ä¸ªå ï¼servlet-api.jaråjsp-api.jar导è¿ä¸¤ä¸ªjarå
jsp-apiservlet-apiå¼åJSPéè¦ä¸¤ä¸ªå ï¼javax.servletåjavax.servlet.httpï¼æjsp-apiãservlet-apiæ¾å°é¡¹ç®ä¸çweb-inf/libç®å½ä¸å³å¯javax.servlet.http.HttpServletRequestæ¯javax.servlet.httpä¸çä¸ä¸ªç±»ï¼è¦åç¨å®ï¼å¿ é¡»è¦ç»§æ¿javax.servletåjavax.servlet.http两个å ï¼æjsp-api,源码边界数的源码servlet-apiæ¾å°é¡¹ç®ä¸çweb-inf/libç®å½ä¸å³å¯
2024-11-28 08:21
2024-11-28 07:38
2024-11-28 06:55
2024-11-28 06:43
2024-11-28 06:42
2024-11-28 05:58