I promised you to create some little examples on using JSTL with DBFORMS to create
different layers (business logic, presentation logic, presentation).
So I extended the bookstore example adding 3 tables
(library, customers, and library customers) to create different examples.
Now I send you the source code,
I don't know if this is useful from your point of view.
These are very basic examples on how I re-engeneered my dbforms application.
Ivan Codarin (ivan.codarin@amm.uniud.it)
ivanCustomerJSTL.jsp | is a jdbform JSP where I use JSTL to set the backcolor of the table-rows instead of setting a counter inside the JSP and testing it. |
ivanCustomer.jsp | "traditional" jdbforms example |
ivanCustomerJSTL_Bean.jsp: | is a jdbform JSP where I use JSTL to set the backcolor fo the table-rows. The color is computed inside a Bean that receives a record and establish the "correct color of the background". I called this "presentation-logic" because it isn't the true application logic but a new layer between it an the presentation. |
ivanLibraryJSTL.jsp | IvanLibraryJSTL is an example similar to ivanCustomerJSTL |
ivanLibrary.jsp | "traditional" jdbforms example |
ivanLibraryCustomer.jsp | "traditional" jdbforms example |