½¨Á¢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開發¹¤¾ß &
Ïà¹ØÎĵµ£º
1ÔõÑù¸Ä±ämyeclipseĬÈϵÄjsp ´ò¿ª·½Ê½
preferences->General->editors£>Files Associations£¨Î»Öøù¾Ý¾ßÌåeclipse°æ±¾»áÓÐËù²»Í¬£© File Types Ñ¡Ôñ.jsp assiciations ÀïÑ¡ÔñMyEclipse jsp editor£¬È»ºóµãÓұߵÄdefault
2,ÉèÖÃMyEclipse ×ÖÌå´óС
ÔÚwindow->perferences->General->Appearance-> ......
Îļþ´ò¿ªÊ±ºòÊÇͨ¹ýÎļþÍ·À´È·¶¨ÎļþµÄ±àÂë
StreamReader sr=new StreamReader(@"F:\cym\temp\1.txt");
sr.CurrentEncoding //·µ»Ø±àÂë
ÊÀ½çÉϵĸ÷µØÇø¶¼Óб¾µØµÄÓïÑÔ¡£µØÇø²îÒìÖ±½Óµ¼ÖÂÁËÓïÑÔ»·¾³µÄ²îÒì¡£ÔÚ¿ª·¢Ò»¸ö¹ú¼Ê»¯³ÌÐòµÄ¹ý³ÌÖУ¬´¦ÀíÓïÑÔÎ ......
×öÁËÒ»¸öСģ¿é ÐèÒª ÔÚjspÒ³ÃæÉÏ°´ÕÕExcel±¨±í¸ñʽÏÔʾ±íÍ· ËäÈ»²»¸´ÔÓ µ«ÊǵÚÒ»´Î×ö Áô¸ö¼ÍÄî
ÕâЩ¶«Î÷¸ßÊÖµ±È»ÊDz»ÐèÒªÁË µ«ÊǶÔÓÚû×ö¹ýµÄ ¿ÉÄÜ»á¸øÄãÒ»µãµãÊÕ»ñ
ҪעÒâµÄÊÇ ±íÍ·µÄrowspanºÍcolspan ºáÊúҪƥÅä ²»È»ÏÂÃæÔÙÌí¼Ó ±í¸ñ»áÂÒ ÓÐɶ²»Çå³þµÄ »¶ÓÁôÑÔ
<%@ page language="java" pageEncoding="UT ......
̽Ë÷Èí¼þ¹¤×÷ÊÒ³¤ÆÚרҵ³Ð½ÓÖÐСÐÍÉÌÒµÈí¼þ»òÍøÕ¾£¬×îÓŻݵļ۸ñºÍ¸ßÖÊÁ¿µÄ·þÎñÆÚ´ýÄúµÄ»Ý¹Ë£¡
±¾¹¤×÷ÊÒ³Ð½Ó JSP ASP VB PB LotusNotes µÈÓïÑÔÒªÇóµÄÓ¦ÓÃϵͳ¿ª·¢ÒµÎñ
java jspʵսԴ³ÌÐò´úÂë:
......
ת×Ô£ºhttp://hi.baidu.com/346667002/blog/item/e58edef0d599fcc97831aa18.html
1. ActionContext
ÔÚStruts2¿ª·¢ÖÐ,³ýÁ˽«ÇëÇó²ÎÊý×Ô¶¯ÉèÖõ½ActionµÄ×Ö¶ÎÖÐ,ÎÒÃÇÍùÍùÒ²ÐèÒªÔÚActionÀïÖ±½Ó»ñÈ¡ÇëÇó(Request)»ò»á»°
(Session)µÄһЩÐÅÏ¢,ÉõÖÁÐèÒªÖ±½Ó¶ÔJavaServlet
HttpµÄÇëÇó(HttpServletRequest),ÏìÓ¦(HttpServletRes ......