Topic: return 问题 |
Print this page |
1.return 问题 | Copy to clipboard |
Posted by: 5330573 Posted on: 2007-04-30 12:07 public String changeUserName(int workid) throws SQLException { WorkIdDao wdao = new WorkIdDao(); ArrayList list = wdao.workId_select(workid); if(list.isEmpty()) { return "<font color=red face=Script MT Bold><b>该用户不存在</b></font>"; } else{ return "<font color=green face=Script MT Bold><b>通过验证</b></font>"; } } 为什么只返回第二个也就是else语句里面的 |
2.Re:return 问题 [Re: 5330573] | Copy to clipboard |
Posted by: Illum Posted on: 2007-05-02 14:45 没有取到数据 |
3.Re:return 问题 [Re: 5330573] | Copy to clipboard |
Posted by: xiezhuojun2006 Posted on: 2007-05-03 23:24 if 不成功只能执行else的啊!! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |