Great, thanks for the input ...

-----Original Message-----
From: Krishna Srinivasan, ISDC Chennai [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 7:48 AM
To: Struts Users Mailing List
Subject: RE: Taglib vs. Action To Populate LOVs.



It would be better to use options tag.




-----Original Message-----
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 6:04 PM
To: 'user@struts.apache.org'
Subject: Taglib vs. Action To Populate LOVs.


I have a form which needs to display several dropdown combo boxes, one in
particular is to be populated with values as follows:

  Today
  Yesterday
  This Week
  Last Week
  This Month
  Last Month
  Last 3 Months
  This Year
  Last Year
  series of Month/Day/Year values
  All

I wanted to ask others opinion on which is the better approach to populating
this combo-box values?  I could use a taglib similar to the following:

  <ss:TransactionDateSelectBox name="transactionForm" property="date"/>

The above would do a bean lookup for transactionForm with property date and
output the necessary HTML select/option tags needed to show the form's
selection box.

Or my action which forwards to the JSP could populate a collection of
LabelValueBean objects and then the JSP could iterate over the collection
using html:options.

Anyone have any suggestion on which is a better approach long-term?  

Thanks
Chris

---------------------------------------------------------------------
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]

Reply via email to