struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Information Guzzler" <info.guzz...@gmail.com>
Subject Re: Design issue
Date Fri, 02 Feb 2007 23:32:05 GMT
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.) <lzhang20@ford.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message