This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See JSP for outputting and formatting. Since SQL queries are 90% of code, i'd like to find a solution that could be used by jsp authors (who are not java programmers but can use set/get properties) for retrieving multiple rows from database and display them on jsp page. At the begining I tried using javabean with collection of objects in ArrayList but its still needs some programming on JSP page (like using ArrayList). Maybe u know some solution for that. thx in advance
hmmm, have you looked at using custom JSP tags? you create you own tags that your HTML authors can use by creating classes in java and then putting them in a tag library which you use on your pages. I'm sure you can find some good tutorials on JSP custom tags out there.
Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
thx a lot for your replies guyz. What about custom tags, it will take an extra time to create it, I'm looking for a standart solution. All I need is: to have a common solution for retrieving rows from database in servlet/javabean and output it in jsp. For eg. jsp author set sql query using setProperty, and get some results using getProperty (last isnt work with multiple results). Maybe JSTL will help me