Ç廪´óѧ³ö°æÉç¹ù¿Ë»ªJavaWeb³ÌÐòÉè¼ÆÉÏ»úÏ°Ìâ´ð°¸ ÏÂÔر¾ÎÄ

String str1=(\ String str2=(\

(\Óû§Õ˺Å:\Óû§ÐÕÃû:\ %>

Chapter6

6-1¡¢

<%@ page language=\ <%

Connection conn=(\ Statement stat=();

String sql=\ ResultSet rs=(sql); while()){

String stuno=(\

String stuname=(\ String stusex=(\

(stuno+\ } (); (); %> 6-2¡¢

<%@ page language=\

ÊäÈëÐÕÃû: 6-2-1¡¢

<%@ page language=\ <%

(\

String name=(\

Connection conn=(\ Statement stat=();

String sql=\STUNO='\ ResultSet rs=(sql); while()){

String stuno=(\

String stuname=(\ String stusex=(\

(stuno+\ } (); (); %> 6-3¡¢

<%@ page language=\

ÊäÈëѧºÅ£º 6-3-1¡¢

<%@ page language=\

<% (\ String sno=(\

String name=(\

Connection conn=(\ Statement stat=();

String sql=\ ResultSet rs=(sql); if(!())

(\ѧºÅ²»´æÔÚ£¬µÇ¼ʧ°Ü£¡\ else{

String stuname=(\ if(name))

(\¹§Ï²£¬µÇ½³É¹¦£¡\ else

(\ÐÕÃû²»´æÔÚ£¡\ } ();

(); %>

Chapter7

7-1¡¢

<%@ page language=\ <%

String address=(); int index=('.');

String addressCut=(0,index); if(\

(\±§Ç¸£¬Äã±»½ûÖ¹·ÃÎÊ£¡\ %> 7-2¡¢

<%@ page language=\

ÊäÈëͼÊé¼Û¸ñ£º 7-2-1¡¢

<%@ page language=\ <%

String str=(\ %>

ÊäÈë»ãÂÊ£º 7-2-2¡¢

<%@ page language=\

<%

String str1=(\ String str2=(\ double d1=(str1); double d2=(str2); double r=d1/d2; (r); %> 7-3¡¢

<%@ page language=\

Óû§Ãû£º

ÃÜÂ룺 <%

String name=(\

String password=(\ if(name!=null&&password!=null){ if(password)){ (\ }

else (\µÇ½´íÎó!\ } %> 7-3-1¡¢

<%@ page language=\ »¶Ó­µÇ½£¡ 7-4¡¢

<%@ page language=\

Ñ¡Ôñ±³¾°ÑÕÉ«: