This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
If you are using JSTL/EL etc... then why Java code inside the JSP? They should belong in your model layer. Can you tell us what configuration you have setup here (application server, JSTL version)? And perhaps the complete Error message?
Please read TellTheDetails.
I am just trying to see whether message in the LinkedList is getting displayed or not, hence java code, I will later put it in bean file. Server is GlassFish 3.1 and using Netbeans 7.0.1 and the output is the same which I have already mentioned. Again repeating -
There are different ways you can access depending on the various data structures being used.
You already have done this for the List data structure. And the *square bracket style* () can be used with Map, bean, List, Array types.
Here the "x" can be the index (for array types) or a key (for Map types) etc... Note that this object should be placed in one of EL/JSTL accessible scopes as mentioned already.
I suggest you read the EL, JSTL in the J2EE tutorial here for more examples.