Create Array

M

mareluad

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:eek:ut value="${myArray[0][0]}"/>
<c:eek:ut 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
 
S

stepan.kozak

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)
 
M

mareluad

Thanks so for this gives no error

But the next error is: Unkwown tag(c:setArray)

Must i have a orther package ?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top