在表单里<form name="form1" action="addInformationBank_do.jsp" enctype="multipart/form-data" method="post">包含<input type="file" name="file" >和<select name="possible" size="20" MULTIPLE style="width: 200px">,在addInformationBank_do.jsp里如何才能得到select的值???快!!!

解决方案 »

  1.   

    jspSmartUpload.getRequest().getParameter("possible")即可
    jspSmartUpload是你的文件上传包的名称
      

  2.   

    如果是submit的话 
    直接String lsValue = request.getParameter("possible")就可以了
      

  3.   

    谢谢上面两位高手的解答。我还有点不明白,是不是下面的意思:<jsp:useBean id="mySmartUpload" cope="page"class="com.jspsmart.upload.SmartUpload" />
    com.jspsmart.upload.Request myReq = mySmartUpload.getRequest();
    myReq .getRequest().getParameter("possible")即可?如果是,我已经用过了,但还是不行的!!!!
      

  4.   

    这个问题是可以解决的,我已经解决了。最关键的问题就是“先要初始化”!!
    <jsp:useBean id="mySmartUpload" cope="page"class="com.jspsmart.upload.SmartUpload" />//注意以下的两行,位置要放在前面
    mySmartUpload.initialize(pageContext);
    mySmartUpload.upload();//然后再取值就可以了
    com.jspsmart.upload.Request myReq = mySmartUpload.getRequest();
    myReq .getRequest().getParameter("possible")