Hello I want to create a arry with:
<%@ page import="java.util.*" %>
<c:setArray var="row" index="0" value="0"/>
<c:setArray var="row" index="1" value="1"/>
<c:setArray var="myArray" index="0" value="${row}"/>
<c:out value="${myArray[0][0]}"/>
<c:out value="${myArray[0][1]}"/>
but I get the next error :
The import java.until is never used (in file: "java.until.*")
Does someone has a solution.
Thanks
stepan.kozak@gmail.com - 16 Feb 2006 11:12 GMT
I guess you mean java.UTIL not java.UNTIL - so this is probably first
error, but the exception you get, inform you that import of java.util
is not necessary, because common array is not there - in this package
are advanced arrays such an ArrayList etc.
Solution: remove import of java.util and check you have not mistake in
spelling (java.until)
mareluad - 16 Feb 2006 12:46 GMT
Thanks so for this gives no error
But the next error is: Unkwown tag(c:setArray)
Must i have a orther package ?
Thanks
steen - 16 Feb 2006 13:50 GMT
Well,
according to the JSTL api, there is no c:setArray tag
check http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html
/Steen
> Thanks so for this gives no error
>
[quoted text clipped - 3 lines]
>
> Thanks
mareluad - 16 Feb 2006 16:12 GMT