Hi,

I am doing as following

protected Map referenceData(HttpServletRequest request) throws Exception {
        Map model = new HashMap();
        List<Webappssystem> webSystemImpacted =
webappssystemManager.getAll();
        Collections.sort(webSystemImpacted);
        model.put("webSystemImpacted",webSystemImpacted);
        model.put("areas",areasimpactedManager.getAll());
        return model;
    }

But still "webSystemImpacted" in not sorted.:(

mraible wrote:
> 
> You should sort your list with your HQL query, or use
> Collections.sort() to sort the list.
> 
> Matt
> 
> On 7/17/07, Msarda <[EMAIL PROTECTED]> wrote:
>>
>> Hi all,
>>
>> I want to sort the drop down before displaying it on jsp.
>> I am using following in jsp to populate drop dowm list.
>>
>> <appfuse:label styleClass="desc" key="engagementform.systems"/>
>>                 <select name="systems" multiple="true">
>>                 <c:forEach var="system" items="${webSystemImpacted}">
>>                 <option value="<c:out value="${system.id}"/>" <c:forEach
>> var="sys"
>> items="${engagementform.systems}">
>>         <c:if test="${sys.id==system.id}">SELECTED</c:if>
>>         </c:forEach>
>>         ><c:out value="${system.name}"/></option>
>>         </c:forEach>
>>                 </select>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-alphabetically-sort-drop-down-list-before-displaying-on-jsp-tf4100323s2369.html#a11660394
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-alphabetically-sort-drop-down-list-before-displaying-on-jsp-tf4100323s2369.html#a11661211
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to