This action creates a scoped variable named vect (in page scope) from the scoped variable allrows that is in session scope. Is that what you want?
<c:out value="vect.size()" />
This action emits the string "vect.size()" to the response. Probably not at all what you want. Besides, you can't call general methods with the EL. To get the length of a scoped variable, youd use the fn:length() JSTL function.
Before proceeding any further I'd heartily recommend that you grab a copy of the EL and JSTL specifications and give them a good reading. [ March 18, 2008: Message edited by: Bear Bibeault ]
Originally posted by Suman Sharma: ... I have to quickly convert jsp pages to jstl pages at my work.
JSTL/EL, by design, can't do everything that can be done with scriptlets. This means that JSP applications written under a Model1 architecture may not be easy to 'convert' JSTL. Scriptless JSPs (pages built with only JSTL and EL) are designed to be used at the end of a Model, View, Controller processing chain. It is assumed that all the heavy lifting will be done by servlets, and Java objects before context is ever passed to the JSP which handles only marking up the results (HTML,CSS,Javasript,etc..).
Hello, I don't know what re-factoring means. I am trying to print out properties of each java bean objects that are stored in a vector. It is not able to iterate over items in the for loop. I have gone through books. I can't find the solution. Can you please give me some hint that would help me solve this code. Thank you.