Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

Create Array

Thread view: 
mareluad - 16 Feb 2006 10:07 GMT
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
Tanks for your awnser.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.