Definitely (1) if you are strictly following MVC. Is there any specific scenario wherein (2) seems good to you? If there is then explore ways to force it thro' controller
On 2/2/07, Zhang, Larry (L.) <[EMAIL PROTECTED]> wrote:
Think about a typical struts app, and on the jsp there are text field and drop downs. There are two approaches: (1) the action populates all the text fields and drop downs from the Database, and then set the value into the actionform, then the JSP will get the values from the actionform (2) the action populates some fields (text field for example), and leave other fields (drop down for example) to JSP to populate, on which a jsp tag can go to the datasource to get the values. I personally prefer (1) since in (2) the jsp tag actually by pass the controller to get the data from Datasource. What do you think? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]