vt的大小是10 点击页面查询数据第10次的时候会出现String index out of range: -1 异常
头疼死了,希望牛人能给解决一下
<%
//조회시
if(!bStart) {
if(vt == null || vt.size() == 0) {
%>
alert("<%= (new Msg("MSG0154")).getMessage() %>"); //조회 후 데이타 없음 메세지
<%
} else {
for(int i = 0, j = 0, val_i = 0; i < vt.size(); i++) {
fields = (String [])vt.get(i);
%>
var val = new Array();
val[0] = "<%=i+1%>";
<%
for(j = 0, val_i = 1; j < 14; j++) {//modify 13--14 Because Add a new Item
if (j < fields.length) {
%>
val[<%= val_i++%>] = "<%=convertStr(fields[j])%>";
<%
} else { // field 갯수가 더 적을시. (많을땐, 잘림.)
%>
val[<%= val_i++%>] = "";
<%
}
System.out.println("val_i===in For=>"+val_i);
System.out.println("jjj===in For=>"+j);
}
System.out.println("ii====>"+i);
%>
//Row Data 생성 함수 Call
setMatrix("NOOUTLIST", "NOOUTLIST_Header", val);
<%
}
}
vt=null;
}
%>
分享到:
- 2009-01-21 16:57
- 浏览 12795
- 评论(0)
- 论坛回复 / 浏览 (0 / 6965)
- 查看更多
相关推荐
String index out of 4解决方法
* [MNG-4925] - Mismanagement of container lookup realm can cause type incompatibilities for plugins looking up components by string * [MNG-4933] - With a resource directory as . maven raise an java....
附件解决dbf读取文件时遇到乱码问题,下载下来可以直接使用,无需使用dbf的jar包了,可以直接使用.
Usage of ./etcdhelper: -cacert string Server TLS CA certificate. -cert string TLS client certificate. -endpoint string etcd endpoint. (default "https://127.0.0.1:2379") -key string TLS client ...
使用Mybatis Generator自动生成Mybatis相关代码
api-ms-win-crt-string-l1-1-0.dll
Use 0 (default) for small projects, use 1 for large projects (if ecc32 runs out of memory). 2)....Added: --el_DisableDebuggerPresent command-line option for compatibility with 3rd party debuggers ...
在C++中,`std::string` 类已经提供了丰富的方法来处理字符串,以下是 `std::string` 类的一些常用方法: 1. 构造函数: - `string()`: 默认构造函数,创建一个空字符串。 - `string(const char* s)`: 使用 C ...
java.lang.StringIndexOutOfBoundsException: String index out of range: 45 at java.lang.String.charAt(Unknown Source) at com.cb.eclipse.folding.java.calculation.UserDefinedRegionHelper.isSentinel...
单片机串入并出源程序,已经调试成功,可以直接使用
- Support for S7-200 with CP 243-1 was added. Solved problems: - Passing of invalid OPC Item IDs caused a memory leak of the driver's global memory. After the global memory was exhausted, the ...
string-last-index-of string-not-equals string-pad-end string-pad-start string-repeat string-replace string-replace-all string-slice string-split string-starts-with string-substring string-...
--waitretry=SECONDS wait 1..SECONDS between retries of a retrieval. --random-wait wait from 0...2*WAIT secs between retrievals. --no-proxy explicitly turn off proxy. -Q, --quota=NUMBER set ...
string->int时只要遇到字母字符串就停止输入
java 数组下标越界异常(ArrayIndexOutOfBoundsException) java 数组下标越界异常(ArrayIndexOutOfBoundsException)
String::Range::Expand - 扩展类似范围的字符串 概要 use String::Range::Expand; print "$_\n" for expand_range('host[aa-ac,^ab,ae][01-04,^02-03]'); # Prints ... # hostaa01 # hostaa04 # hostac01 # ...
--aq-mode <integer> Mode for Adaptive Quantization - 0:none 1:uniform AQ 2:auto variance. Default 2 --aq-strength <float> Reduces blocking and blurring in flat and textured areas (0 to 3.0). Default...
int indexOf(String str, int fromIndex):返回指定子字符串在此字符串中第一次出现处的索引,从指定的索引开始 int lastIndexOf(String str):返回指定子字符串在此字符串中最右边出现处的索引 int lastIndexOf...
"index": --(int) -> Quiz index. Must match the order of quiz appearance.--, "id": --(long) -> Quiz identificator--, "question": --(string) -> Quiz question--, "answers": [ {
connection-string : ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }} name : my-artifact - run : cat my-artifact 下载到特定目录: steps : - uses : actions/checkout@v1 - uses : fixpoint/azblob-...