I am not getting what you are asking I used <sql:query var="list" dataSource="${dataSource}"> select user_id,name,sum(quantity) as quantity from Product GROUP BY name; </sql:query> I have Name Listbox and quantity textbox The values are displayed as 200,400,800..outside the textbox I wan...