|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Which version of Java are you using?
|
|
#3
|
|||
|
|||
|
very sorry madcowdzz for the long gap .. i am using java 1.5 ..
thanks. siddhartha |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > LinkedList in JSP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|