当前位置: 技术问答>java相关
急需帮助!!!!其实是个小问题。代码如下:
来源: 互联网 发布时间:2015-01-09
本文导语: 我用jsp写代码如下: .... while (rs.next()) { String tname=new String(); tname=rs.getString("DOCTitle"); %> 1000.0) { sr="The number"+num+" is more than 1000 !"; } } return sr; } public String checkin(String s1,String t1){ String sr=""; if (t1=="1...
我用jsp写代码如下:
....
while (rs.next())
{
String tname=new String();
tname=rs.getString("DOCTitle");
%>
1000.0)
{
sr="The number"+num+" is more than 1000 !";
}
}
return sr;
}
public String checkin(String s1,String t1){
String sr="";
if (t1=="1")//char
{
if (s1.length()>5)
{
sr="The input :"+s1+" long more than 5.";
}
}
else
{
if (t1=="2")//num
{
for (int i=0;i
仸僐僺乕乮怴婯嶌惉帪偺傒乯
怘昳斣崋
....
while (rs.next())
{
String tname=new String();
tname=rs.getString("DOCTitle");
%>
1000.0)
{
sr="The number"+num+" is more than 1000 !";
}
}
return sr;
}
public String checkin(String s1,String t1){
String sr="";
if (t1=="1")//char
{
if (s1.length()>5)
{
sr="The input :"+s1+" long more than 5.";
}
}
else
{
if (t1=="2")//num
{
for (int i=0;i
仸僐僺乕乮怴婯嶌惉帪偺傒乯
怘昳斣崋
怘昳斣崋
怘丂昳丂柤
嬫暘
攝崌斾棪乮亾乯
嬫暘
攝崌斾棪乮亾乯
崚椶
廱捁擏椶
偄傕媦傃偱傫暡椶
棏椶
嵒摐媦傃娒枴椶
擕惢昳
壻巕椶
栰嵷
椢墿怓栰嵷
桘帀椶
偦偺懠偺栰嵷
庬幚椶
壥幚椶
摛椶
枴慩
偒偺偙椶
戝摛惢昳偦偺懠
憯椶
嫑夘椶
嫑夘椶
歯岲堸椏椶
乮偆偪彫嫑乯
偦偺懠
copydata.jsp 新弹出窗口,并返回数据到peihe_bilv.jsp页面.
copy data
h2 {color:maroon;text-decoration:underline;text-align:center;}
.p1 {text-align:center;}
.p2 {margin-right:50;text-align:right;}
.p3 {background-color: #ACDDB6;}
.p4 {text-align:left;}
please select the data and submit.
Select怘昳斣崋崚椶偄傕媦傃偱傫暡椶嵒摐媦傃娒枴椶壻巕椶桘帀椶庬幚椶枴慩戝摛惢昳偦偺懠嫑夘椶乮偆偪彫嫑乯廱捁擏椶棏椶擕惢昳椢墿怓栰嵷偦偺懠偺栰嵷壥幚椶偒偺偙椶憯椶歯岲堸椏椶偦偺懠
|
将:
while (rs.next())
{
String tname=new String();
tname=rs.getString("DOCTitle");
%>
while (rs.next())
{
String tname=new String();
tname=rs.getString("DOCTitle");
%>