The Selection Page
Apart from establishing a new session if necessary, the selection page of the application is responsible for finding all key values from the database table, and printing them in an HTML select element (in a form).
Clearly the database query should go in the JavaBean code, and clearly the general frame of the form should go in the JSP.
There is a problem with the generation of the select element.
- If it goes entirely in the JSP, we have to resort to general scripting elements for iteration.
- If it goes in the JavaBean, then the JavaBean has to generate at least some HTML, for the rows of the select element.
Either way, there is some conflict with the goal of separating presentation from logic.