我的后端程式码:
String FurOrigin=request.getReq().getParameter("furOrigin");
我修改了后端程式码存取出来的都是null,
之前我后端程式码是这个:
cart.setFurCity(request.getReq().getParameter("furCity"));
那如果是这样只能够存取一笔
checkbox不管怎麼勾都是一笔!!!
我的js如下:
{
xtype: 'checkboxgroup',
fieldLabel: '补助来源',
name:'furOrigin',
columns: [100, 100],
columnWidth:.5,
vertical: true,
isFormField:true,
items: [
{boxLabel: '教育部', name: 'furOrigin',inputValue: '教育'
,checked: true},
{boxLabel: '学校提拨', name: 'furOrigin',inputValue: '学校提拨'}, {boxLabel: '国科会', name: 'furOrigin',inputValue: '国科会'},
{boxLabel: '基金会', name: 'furOrigin',inputValue: '基金会'},
{boxLabel: '学术机构', name: 'furOrigin',inputValue: '学术机构'},
{boxLabel: '其他', name: 'furOrigin',inputValue: '其他'},
{boxLabel: '自费', name: 'furOrigin',inputValue: '自费'}
]
},
希望能请高手帮个忙!!告诉小弟该如何处理
我希望能详细一点,因为小弟对这部分不是很懂!!!谢谢
cart.setFurOrigin(request.getReq().getParameterValues("furOrigin"));
这样吗? 但前面的setFurOrigin有错呢