Paul Clapham wrote:I don't understand. What did you mean to happen, and what actually happened?
Let me remind you that the JSP (including JSTL) runs on the server and generates HTML, which may include Javascript. You didn't say whether this Javascript code was generated by the JSP or not. Then later, after that is all finished, the Javascript may run in the browser, on the client. You can't expect JSTL to do anything at this point.
Hi Paul, thanks for your reply!
Yes, the javascript code was generated by the JSP, and now I understant why ${} couldn't see my index variable because el is executed at server side and javascript at client side.
But how I can do what I meant to do that is: user selects a bean from a select option and I want to appear information about that bean in a div/span..-wich is:name,address,email and so on.(I allready have all the list generated in server side and also I have an index property so that I can choose easier listOfBeans.get(index).)
Thanks in advanced!