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

JSP»·¾³´î½¨Ö®JDKµÄ°²×°ÓëTomcatÅäÖÃ

JSP»·¾³´î½¨µÚÒ»²½¡¢°²×°JDK
1£©¡¢´Ó¹ÙÍøÏÂÔØ°²×°³ÌÐò£ºhttp://java.sun.com/javase/downloads/index.jspÖ»ÒªÏÂÔØÆäÖÐÖ®Ò»°²×°¾Í¿ÉÒÔÁË
2£©¡¢°²×°JDK°ü
[root@linuxas src]cd /usr/local/src  [root@linuxas src]# chmod u+x jdk-6u14-linux-i586.bin   [root@linuxas src]#./jdk-6u14-linux-i586.bin  
ÊäÈëyes £¬µÈ´ý°²×°Íê³É
[root@linuxas src]# rm -f jdk-6u14-linux-i586.bin   [root@linuxas src]# ls  apache-tomcat-6.0.20.tar.gz jdk1.6.0_14  [root@linuxas src]# pwd  /usr/local/src  [root@linuxas src]# cd jdk1.6.0_14/  [root@linuxas jdk1.6.0_14]# ls  bin jre README_ja.html sample  COPYRIGHT lib README_zh_CN.html src.zip  db LICENSE register.html THIRDPARTYLICENSEREADME.txt  demo man register_ja.html  include README.html register_zh_CN.html  [root@linuxas jdk1.6.0_14]# pwd  /usr/local/src/jdk1.6.0_14 
3£©ÉèÖû·¾³±äÁ¿
[root@linuxas lib]# vi /etc/profile 
Ìí¼ÓÒÔÏÂÄÚÈÝ
export JAVA_HOME=/usr/local/src/jdk1.6.0_14  export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin: $PATH  exportCLASSPATH=.:/usr/local/src/jdk1.6.0_14/lib:/usr/local/src/jdk1.6.0_14/jre/lib:$CLASSPATH 
4£©¡¢ÑéÖ¤JAVA°²×°½á¹û
[root@linuxas ~]# source /etc/profile  [root@linuxas ~]# java -version  java version "1.6.0_14"  Java(TM) SE Runtime Environment (build 1.6.0_14-b08)  Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing) 
JSP»·¾³´î½¨µÚ¶þ²½¡¢°²×°tomcat
1£©¡¢´Ó¹ÙÍøÏÂÔØ°²×°³ÌÐòhttp://tomcat.apache.org/download-60.cgi£¬Ñ¡Ôñ.tar.gz°²×°°üÏÂÔØ¡£
2£©¡¢°²×°tomcat
[root@linuxas ~]#cd /usr/local/src  [root@linuxas src]# tar -zxvf apache-


Ïà¹ØÎĵµ£º

jspÂÒÂëÎÊÌâµÄ½â¾ö

1¡¢ ×î»ù±¾µÄÂÒÂëÎÊÌâ¡£
Õâ¸öÂÒÂëÎÊÌâÊÇ×î¼òµ¥µÄÂÒÂëÎÊÌâ¡£Ò»°ãлá³öÏÖ¡£¾ÍÊÇÒ³Ãæ±àÂë²»Ò»Öµ¼ÖµÄÂÒÂë¡£
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=iso8859-1"%>
<html>
<head>
<title>ÖÐÎÄÎÊÌâ</title>
<meta http-equi ......

MyEclipse¸ü¸Äjsp±à¼­Ê±×ÖÌå

     Ò»Ö±ÒÔÀ´Ê¹ÓÃMyeclipse±à¼­Ê±£¬¸Ð¾õÔ­ÓеÄ×ÖÌå´óСºÜ²»ÊÊÓ¦£¬ÓÚÊÇÔÚÍøÉÏËÑÁ˹ØÓÚÔÚMyEclipseÖÐÔõÑùÐÞ¸Ä×ÖÌå´óС£¬ºÜ¶à¶¼ÊÇʹÓÃwindow-preferences-general-apperaence-colors and fonts-java-java edditor text font À´ÐÞ¸Ä×ÖÌå¡£
    ʹÓÃÕâ¸ö·½·¨ËäȻдÀàÎļþÀïÃæµÄ´óС¶¼¸ü¸ü¸ ......

Java ʹÓÃSSH¿ò¼Ü¿ª·¢Jsp ·½±ã£¬¿ì½Ý£¬¼òµ¥

Impl
public class BaseDAOImpl extends HibernateDaoSupport implements IBaseDAO
 //Ìí¼ÓÊý¾Ý
 this.getHibernateTemplate().save(achi);
 //ɾ³ý
 this.getHibernateTemplate().delete(this.getById(achi));
 //²éѯËùÓÐ
return this.getHibernateTemplate().find("from Achievement a ......

ÓÃjsp:include ¿ØÖƶ¯Ì¬ÄÚÈÝ

Çåµ¥ 1. JSP include αָÁî
<![CDATA[
<%@ page language="java" contentType="text/html" %>
<html>
<head>
<title>newInstance.com</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<link href="/styles/default.css" ......

JSPÖÐÎÄÁ´½Ó/tomcatÖÐÎÄ·¾¶


WEB½øÐÐÉÏ´«ÖÐÎÄÎļþÃûµÄÎļþʱûÎÊÌ⣬µ«ÏÂÔØµÄʱºò³öÏÖÎÊÌ⣬¾­¹ýÒ»·¬²éÕÒÖ®ºóÔ­À´ÊÇTOMCATĬÈϲ»Ö§³ÖÖÐÎÄ·¾¶ºÍÖÐÎÄÎļþ£¬Èç¹ûÖ±½Ó´ÓApacheÕ¾µãÖÐÏÂÔØTomcat£¬ÎÞÂÛÊǰ²×°°æµÄexeÎļþ£¬»¹ÊÇ
½âѹËõµÄZIPÎļþ£¬ÄÚÖõĶÔÓÚgetЭÒéÖеÄURL±àÂë¶¼ÊÇISO-8859-1,Õâ¸ö×Ö·û¼¯²»ÄÜÖ±½ÓÖ§³ÖÖÐÎĵÈË«×Ö½ÚµÄÐÅÏ¢£¬¶øÖÐÎÄÎļþµÄÏÂÔØ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ