I am moving to MVC with struts and reapplying my older code/logic. On my original JSPs at the top just inside the BODY tag I used a jsp:useBean tag to fire a database select like so;
<jsp:useBean id="getAllRecsBean" scope="request" class="invsys.RecAllSel" type="invsys.RecAllSel" />
This was then used to populate a dropdown list (via a for loop) before the user was presented with the JSP.
I want to use a collection/action to populate the drop down list (via a forEach) instead therefore can someone advise me how do I kick off an /action as a JSP loads, I cant find any good references on the web or in EE.