网上有很多山寨版的解释,但是貌似都有问题,下面结合本人经历,解释下
出现:No selector attribute (cookie/header/name/parameter) was specified
是你的
<html:select property="brandCode" name="VmiOvhlHKForm" styleClass="input_box_20">
<html:option value="">ALL</html:option>
<logic:present property="vmiBrandList" name="VmiOvhlHKForm">
<html:optionsCollection property="vmiBrandList"/>
</logic:present>
</html:select>
logic:present 标签里面没有加name属性
还有个什么 no BEAN in any scop
问题的原因是你的 form标签用的是 html的 <form>但是在 里面用了 struts标签,把<form/>换成 <html:form/>就可以了
出现:No selector attribute (cookie/header/name/parameter) was specified
是你的
<html:select property="brandCode" name="VmiOvhlHKForm" styleClass="input_box_20">
<html:option value="">ALL</html:option>
<logic:present property="vmiBrandList" name="VmiOvhlHKForm">
<html:optionsCollection property="vmiBrandList"/>
</logic:present>
</html:select>
logic:present 标签里面没有加name属性
还有个什么 no BEAN in any scop
问题的原因是你的 form标签用的是 html的 <form>但是在 里面用了 struts标签,把<form/>换成 <html:form/>就可以了