Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 21st, 2005, 08:58 AM
kpsiddharth kpsiddharth is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 7 kpsiddharth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 12 m 57 sec
Reputation Power: 0
Question LinkedList in JSP

hi -

need some help in jsp. i am just a beginner. i have a linkedlist for Float objects in JSP. but, everytime i am using the following statement it is giving an error:

LinkedList<Float> fileFitness = new LinkedList<Float>();

there are the following errors:

An error occurred at line: 198 in the jsp file: /search.jsp
Generated servlet error:
Syntax error on token "<", invalid AssignmentOperator

An error occurred at line: 198 in the jsp file: /search.jsp
Generated servlet error:
Syntax error on token "=", != expected

An error occurred at line: 198 in the jsp file: /search.jsp
Generated servlet error:
Syntax error on token "<", ( expected

An error occurred at line: 198 in the jsp file: /search.jsp
Generated servlet error:
Syntax error on token "(", invalid Expression

now when i have removed the <Float> and am using a simple linkedlist of objects, after using remove() i am unable to convert those objects to Float to use their values. no my code is:

LinkedList fileFitness = new LinkedList();
...
Float temp = fileFitness.remove();

now it is giving the error:

An error occurred at line: 198 in the jsp file: /search.jsp
Generated servlet error:
Type mismatch: cannot convert from Object to Float

can anyone help please?

thanks.
siddhartha

Reply With Quote
  #2  
Old May 24th, 2005, 09:53 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Which version of Java are you using?

Reply With Quote
  #3  
Old June 8th, 2005, 08:42 AM
kpsiddharth kpsiddharth is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 7 kpsiddharth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 12 m 57 sec
Reputation Power: 0
Post java 1.5

very sorry madcowdzz for the long gap .. i am using java 1.5 ..

thanks.
siddhartha

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > LinkedList in JSP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT