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

½¨Á¢JSP開發環¾³

 1.  JRE °²裝 (¿É從 http://java.sun.com/ÏÂ載)
       Java SE Runtime Environment (JRE)   JRE 6 Update 17
 2.  JDK°²裝   (¿É從 http://java.sun.com/ÏÂ載)
      Java SE Development Kit (JDK)    JDK 6 Update 17
 3.JDK  Enviroment Variables 設ÖÃ
       JAVA_HOME      C:\Java\jdk1.6.0_04
       CALLSSPATH     .;
       Path                  %JAVA_HOME%\bin
 4. 測試ÊÇ·ñ設¶¨³É¹¦
       cmd->運ÐÐ javac  or 運ÐÐ java -version
 5.tomcat 6.20  (¿É從  http://www.apache.org/ ÏÂ載)
      6.0.20 -> Binary Distributions ->Windows Server Installer  ÏÂÔغó°²×°
      browser : http://localhost:8080  µ¯³öTomcat Ò³Ãæ¡£¼´°²×°³É¹¦¡£
     ÐéÄâĿ¼ÅäÖãº
      create folder  "F:JavaWebApp"
      È»ºó½¨Á¢web.xml Îļþ ¿É´ÓF:\Tomcat 6.0\webapps\ROOT\WEB-INF\Web.xml¸´ÖÆÕ³Ìù£¬
      °Ñ½Úµã</web-app>ÀïÃæÄÚÈÝɾ³ý¡£
      F:\Tomcat 6.0\conf\server.xml ÎļþÖÐ </host>Ç°ÅäÖÃÐéÄâĿ¼·¾¶ <Context path="/test" docBase="F:\JavaWebApp"/>
      È»ºóÔÙÐéÄâĿ¼Öн¨helloWorld.jspÒ³Ã棬browser ²âÊÔ http://localhost:8080/test/helloWorld.jsp .
 6.Eclipse (¿É從 http://www.eclipse.org ÏÂ載)
    ´Ë為×ÀÃæ開發¹¤¾ß
 7.myEclipse (¿É從 ÏÂ載)
    JSP開發¹¤¾ß  &


Ïà¹ØÎĵµ£º

Ñù¸Ä±ämyeclipseĬÈϵÄjsp ´ò¿ª·½Ê½

1ÔõÑù¸Ä±ämyeclipseĬÈϵÄjsp ´ò¿ª·½Ê½
preferences->General->editors£­>Files Associations£¨Î»Öøù¾Ý¾ßÌåeclipse°æ±¾»áÓÐËù²»Í¬£© File Types Ñ¡Ôñ.jsp assiciations ÀïÑ¡ÔñMyEclipse jsp editor£¬È»ºóµãÓұߵÄdefault
2,ÉèÖÃMyEclipse ×ÖÌå´óС
ÔÚwindow->perferences->General->Appearance-> ......

jsp,java±àÂëÔ­Àí

Îļþ´ò¿ªÊ±ºòÊÇͨ¹ýÎļþÍ·À´È·¶¨ÎļþµÄ±àÂë
StreamReader   sr=new   StreamReader(@"F:\cym\temp\1.txt");  
  sr.CurrentEncoding   //·µ»Ø±àÂë
ÊÀ½çÉϵĸ÷µØÇø¶¼Óб¾µØµÄÓïÑÔ¡£µØÇø²îÒìÖ±½Óµ¼ÖÂÁËÓïÑÔ»·¾³µÄ²îÒì¡£ÔÚ¿ª·¢Ò»¸ö¹ú¼Ê»¯³ÌÐòµÄ¹ý³ÌÖУ¬´¦ÀíÓïÑÔÎ ......

¡¾jsp¡¿jspÒ³Ãæ±í¸ñºÍ±íÍ·µÄÆ´½Ó

 ×öÁËÒ»¸öСģ¿é ÐèÒª ÔÚjspÒ³ÃæÉÏ°´ÕÕExcel±¨±í¸ñʽÏÔʾ±íÍ· ËäÈ»²»¸´ÔÓ µ«ÊǵÚÒ»´Î×ö Áô¸ö¼ÍÄî
ÕâЩ¶«Î÷¸ßÊÖµ±È»ÊDz»ÐèÒªÁË µ«ÊǶÔÓÚû×ö¹ýµÄ ¿ÉÄÜ»á¸øÄãÒ»µãµãÊÕ»ñ
ҪעÒâµÄÊÇ ±íÍ·µÄrowspanºÍcolspan ºáÊúҪƥÅä ²»È»ÏÂÃæÔÙÌí¼Ó ±í¸ñ»áÂÒ ÓÐɶ²»Çå³þµÄ »¶Ó­ÁôÑÔ
<%@ page language="java" pageEncoding="UT ......

asp jsp´úÂë

 Ì½Ë÷Èí¼þ¹¤×÷ÊÒ³¤ÆÚרҵ³Ð½ÓÖÐСÐÍÉÌÒµÈí¼þ»òÍøÕ¾£¬×îÓŻݵļ۸ñºÍ¸ßÖÊÁ¿µÄ·þÎñÆÚ´ýÄúµÄ»Ý¹Ë£¡
±¾¹¤×÷ÊÒ³Ð½Ó JSP ASP  VB  PB  LotusNotes µÈÓïÑÔÒªÇóµÄÓ¦ÓÃϵͳ¿ª·¢ÒµÎñ
java jspʵսԴ³ÌÐò´úÂë:
                ......

struts2ÖÐaction»ñÈ¡jspÒ³Ãæ²ÎÊý

ת×Ô£ºhttp://hi.baidu.com/346667002/blog/item/e58edef0d599fcc97831aa18.html
1. ActionContext
ÔÚStruts2¿ª·¢ÖÐ,³ýÁ˽«ÇëÇó²ÎÊý×Ô¶¯ÉèÖõ½ActionµÄ×Ö¶ÎÖÐ,ÎÒÃÇÍùÍùÒ²ÐèÒªÔÚActionÀïÖ±½Ó»ñÈ¡ÇëÇó(Request)»ò»á»°
(Session)µÄһЩÐÅÏ¢,ÉõÖÁÐèÒªÖ±½Ó¶ÔJavaServlet
HttpµÄÇëÇó(HttpServletRequest),ÏìÓ¦(HttpServletRes ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ