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

ÇóÖújspÖÐÔËÐÐJavabeanÎÊÌâ

SetGetPropertytest.jspÔ´´úÂëÈçÏ£¬Ð»Ð»´ó¼ÒÇ°À´°ï棬ͬʱף´ó¼ÒÖÐÇï¿ìÀÖ
<%@ page c%>
<HTML>
<HEAD>
<TITLE>setProperty¶¯×÷ÓëgetProperty¶¯×÷·¶Àý </TITLE>
</HEAD>
<BODY>
<font size=5>setProperty¶¯×÷ÓëgetProperty¶¯×÷·¶Àý </font>
<HR>
<JSP:useBean id="SetGetProperty"
scope="request" class="SetGetPropertytest"/>
<%
SetGetProperty.setName("ÀîËÄ");
SetGetProperty.setSex("ÄÐ");
SetGetProperty.setBirthday("1967Äê8ÔÂ5ÈÕ");
SetGetProperty.setAddress("ºþÄÏÊ¡³¤É³ÊÐ");
SetGetProperty.setTelephone("0731-1234567");
out.println("ÐÕÃû£º"+SetGetProperty.getName()+" <br>");
out.println("ÐÔ±ð£º"+SetGetProperty.getSex()+" <br>");
out.println("ÉúÈÕ£º"+SetGetProperty.getBirthday()+" <br>");
out.println("סַ£º"+SetGetProperty.getAddress()+" <br>");
out.println("µç»°£º"+SetGetProperty.getTelephone()+" <br>");
%>
<HR>
</BODY>
</HTML>

javabeanµÄÔ´´úÂëSetGetPropertytest.Java

public class SetGetPropertytest{
private String name=""; //ÐÕÃû
private


Ïà¹ØÎÊ´ð£º

Ò»¸öÍøÕ¾ÈçºÎͬʱ֧³Öasp,jsp£¿

Ò»¸öÍøÕ¾£¬Ö®Ç°ÊÇÓÃASPдµÄ£¬ÏÖÔÚÓÃJSPÌí¼ÓÁËһЩеÄÒ³ÃæÉÏÈ¥£¬ÇëÎÊÒ»¸öÍøÕ¾Äܲ»ÄÜͬʱ֧³ÖASPºÍJSP£¿Èç¹û¿ÉÒԵĻ°£¬ÐèÒªÈçºÎÉèÖÃÄØ£¿Ð»Ð»£¬²»ºÃÒâ˼£¬¾ÍÊ£Õâôһµãµã¿ÉÓ÷ÖÁË¡£¡£

¾ÍÊÇ»·¾³ÎÊÌâ
up

¿ÉÒÔ×° ......

jsp¶¯Ì¬°üº¬

include.jspÖÐ
<jsp:include page="divide.jsp?value1=2&value2=3 flush="true">

value1 , value2 µÄÖµ¿ÉÒÔ´ÓÉÏÒ»¸ö´«¸øinclude.jspµÄdata.jspÖÐÈ¡Âð£¿

Èç¹û¿ÉÒÔÕâôд° ......

JSPÒ³ÃæÊÇÈçºÎ±»Ö´Ðеģ¿JSPÖ´ÐÐЧÂʱÈServletµÍÂð£¿

ÕâÊÇÎÒ´ÓIT¹«Ë¾ÃæÊÔÊÖ²áÍøÕ¾ÉÏ¿´µ½µÄÒ»¸öÃæÊÔÌ⣬ËûÃÇÌṩµÄ´ð°¸ÊÇ£º

µ±¿Í»§¶ËÏòÒ»¸öJSPÒ³Ãæ·¢³öÇëÇóʱ£¬Web Container½«JSPת»¯³ÉServletµÄÔ´´úÂë(Ö»ÔÚµÚÒ»´ÎÇëÇóʱ)£¬È»ºó±àÒëת»¯ºóµÄServlet²¢¼ÓÔص½ÄÚ´æÖ ......

jspÊý¾Ý¿âÁ¬½Ó

package MidTerm;
import java.sql.*;
import com.mysql.jdbc.Driver;
public class Connection
{
private static Connection con;
private Statement statement;
private ResultSet rs; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ