²»ÄܱàÒëjspÔõô°ì
Ò²ÐíºÜ¶à¸ßÊÖ¶¼²»Ï÷½â¾öÕâ¸öÎÊÌ⣬µ«ÊÇÎÒ¾õµÃ¶Ô³õѧÕßÀ´ËµÕâ¸öÎÊÌ⻹ÊÇÒªÑо¿Ò»»áµÄ£¬ËùÒԾͼǼÏÂÀ´ÁË¡£
ÎÊÌâÃèÊö£º
µ±ÄãÔÚEclipseµÄ³ÌÐòÖмÓÈëÒ»¸öJSPÎļþºó£¬Õû¸öProject »á±¨Ò»¸öÕâÑùµÄError.
ÎÊÌâÔÒò£º
ĬÈÏEclipseµÄ±àÒë»·¾³ÊÇJRE£¬¶øJREÊDz»´ø±àÒëÆ÷µÄ£¬Ö»ÓÐJDK²Å´ø±àÒëÆ÷¡£ËùÒÔ±ØÐë°ÑJDK×÷ΪÄãÏîÄ¿µÄInstalled JRE¡£
½â¾ö·½°¸:
1.ÔÚWindow ²Ëµ¥ÏÂÑ¡ÔñPreferences
2.ÔÚJava-Installed JREÉÏ£¬Ñ¡ÔñAdd ,Ñ¡ÔñStandard JVM,È»ºóÑ¡ÔñJDK ËùÔÚµÄĿ¼¡£Ñ¡ÔñJDK×÷ΪInstalled JRE Ê×Ñ¡¡£
´íÎóÏûʧ¡£
http://blog.csdn.net/lament_gates/archive/2009/08/02/4402313.aspx
http://blog.csdn.net/lament_gates/archive/2009/08/02/4402313.aspx
Ïà¹ØÎĵµ£º
JSP¾Å´ó¶ÔÏó£º
ÄÚÖöÔÏó£¨ÓÖ½ÐÒþº¬¶ÔÏó£¬ÓÐ9¸öÄÚÖöÔÏó£©:²»ÐèÒªÔ¤ÏÈÉùÃ÷¾Í¿ÉÒÔÔڽű¾´úÂëºÍ±í´ïʽÖÐËæÒâʹÓÃ
1-out:
javax.servlet.jsp.JspWriterÀàÐÍ£¬´ú±íÊä³öÁ÷µÄ¶ÔÏó¡£×÷ÓÃÓòΪpage£¨Ò³ÃæÖ´ÐÐÆÚ£©
request£ºjavax.servlet.ServletRequestµÄ×ÓÀàÐÍ£¬´Ë¶ÔÏó·â×°ÁËÓÉWEBä¯ÀÀÆ÷»òÆäËü¿Í»§¶ËÉú³ÉµØHTTP
ÇëÇóµÄϸ½Ú£¨² ......
ÕâÊÇÒ»¸öÓû§×¢²áµÄÒ³Ã棬²¿·Ö´úÂ루ûÓдíÎó£©ÒÑÂÔ£¬¿ÉÊDz»ÄÜʵÏÖformµÄactionÌøת
checkform()ÀïÃ÷Ã÷ÓÐdocument.form.submit()£¬¾ÍÊDz»ÄÜÌøת£¬
ÄÜ°ïÎÒ¿´ÏÂÎÊÌâ³öÔÚÄÄÂð£¿
ÕâÊÇÕÕ×ÅÊéÉϵÄÀý×ÓдµÄ£¬×¢²áºÍÖØÖö¯¶¼×÷ÊÇͨ¹ýͼƬÀ´´¦ÀíµÄ¡£
Çë²»Áߴͽ̣¬ÔÚϲ»Ê¤¸Ð¼¤¡£¡£¡£
<%@ page contentType="te ......
<%@ page language="java" import="kg.TestBean2;" %>
<%@ page contentType="text/html;charset=gb2312" %>
<html>
<head>
<title>HelloBean</title>
</head>
<body>
<%--
<%
kg.TestBean2 testbean=(kg.TestBean2)session.setAttribute("testbean");
if ......
Ê÷½Úµã×éºÏÄ£ÐÍ
package cn.com.jsnh.model.catalog;
public class TreeModel {
private String node;
private CatalogModel model;
public String getNode() {
return node;
}
public void setNode(String node) {
this.node = node;
}
public CatalogModel getModel() {
return model;
}
public void setMo ......