Results 1 to 5 of 5
Thread: retrieving data from token
- 09-30-2010, 02:47 AM #1
Member
- Join Date
- Nov 2007
- Posts
- 19
- Rep Power
- 0
- 09-30-2010, 03:03 AM #2
What do you mean by a token? Is it what is returned by the StringTokenizer class?
Can you describe your problem some more. You talk about array, the length of tokens, the length of array, values of array in token.
Your mixing of words and concepts makes no sense.
You can't store an array in a token.
The length of an array is obtained by the length attribute.
The length of a String is obtained by the length() method.
Elements in an array are retrieved by indexing into the array.
- 09-30-2010, 03:12 AM #3
Member
- Join Date
- Nov 2007
- Posts
- 19
- Rep Power
- 0
Firstly, I need to retrieve data directly from the database that is already in a form of an array and print it out onto a file. So I would use codes like this:
out.write(rs.getString("driage")+"|"+rs.getString( "drinam")+"|"
driage is an array of data and so is drinam.
After printing it onto the file, I use powerfultokenizer which i supposed its the same as a string tokenizer to seperate each data field into various tokens. For e.g., driage data is in one token and drinam is in another.
So, each token would have an array. How do I get the length of it and retrieve the data from it? Does that make sense? If not then I'll try other ways. I'm not even sure if that works.
- 09-30-2010, 03:16 AM #4
Sorry, I don't know anything about the classes you are using or about databases.
- 09-30-2010, 08:49 AM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Similar Threads
-
Problem retrieving data to JSP from Bean [using Hibernate]
By linking90 in forum JavaServer Pages (JSP) and JSTLReplies: 11Last Post: 09-09-2010, 05:50 PM -
(Java newbie) retrieving data from a web site
By idum in forum NetworkingReplies: 4Last Post: 10-12-2009, 07:37 PM -
Store data is not retrieving
By JavaJunkie in forum CLDC and MIDPReplies: 2Last Post: 05-30-2009, 08:08 AM -
error while retrieving data from data base
By kirtesh4u in forum New To JavaReplies: 5Last Post: 11-15-2008, 04:10 PM -
Retrieving data from the DB
By yuchuang in forum JDBCReplies: 2Last Post: 11-27-2007, 08:59 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks