struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang, Larry \(L.\)" <lzhan...@ford.com>
Subject Design issue
Date Fri, 02 Feb 2007 22:39:53 GMT

 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
View raw message