All the information needed for the JSP must be available in the collection of user objects. So, the action -- that invokes the call to the database -- is also responsible for setting the stage as needed by the JSP by get the role names for all the role ids.
Sri -----Original Message----- From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 1:30 PM To: 'Struts Users Mailing List' Subject: Where to place lookup val logic when not using an Action Form? Hello all, I have a page which list users. The page is displayed by requesting the listUsers action. This action queries the database and places a Collection of user objects into the request for the listUsers.jsp page to display (Using the iterate tag). For conversation sake, say this user object has a "roleId". Where would the logic be placed to translate this roleId into its corresponding roleName? Because this page is for display, there is no action form. I don't want to put any data access code in the jsp. Could someone provide a suggestion? Regards, Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]