Originally posted by saikrishna cinux: but now comming to struts frame work there is a restriction that we should not use java code(scriptlet) inside the jsp page
Hi, You may use logic resent in conjunction with logic:iterate to iterate and bean:write to write the records that are fetched on the jsp. Best practices and industry stds say that use of scriplets should not be done(though they work). you may also use JSTL for that (use foreach, etc for your records regards, Roshani
The logic empty first checks to see if there is any information to iterate over, if there isnt it displays "No books available". If there is information present it will use the logic iterate to print out author and title, all an element of book.
Hope this example was of some help.
subject: what should i use in jsp for displaying multiple records?