js:if(document.getElementsByName("type1").value==""){
alert("类型不能为空!");
return;
}
struts1的标签 <td class="dashedline" width="100" align="right">类型:</td>
            <td class="dashedline"><bean:write name="type1name"/>
             <html:hidden property="type1"/>
            </td>