日期:2014-05-18  浏览次数:20856 次

老生长谈的问题
我在一个上传的文件里
<FORM   name= "form1 "   METHOD= "POST "   ENCTYPE= "multipart/form-data "   action= "./aa.jsp ">
XXX
XXX
XXX
<input   type= "text "   name= "strname "   value= "aaa ">
XXx
XXX\

结果在aa.jsp用了以前看到贴子上的
String       strname=mySmartUpload.getRequest().getParameter( "strname ");      
取出来的还是null

请各位真正给个解答

------解决方案--------------------
没弹过, 帮顶
------解决方案--------------------
<jsp:useBean id= "mySmartUpload " scope= "page " class= "com.jspsmart.upload.SmartUpload " />

<form action= " " method= "post " enctype= "multipart/form-data " name= "form1 " id= "form1 ">
</form>

String strname=mySmartUpload.getRequest().getParameter( "strname ");


------解决方案--------------------
直接用request.getParameter( "strname ");