请教如何使用Jspsmartupload

leisurelph 2001-07-17 02:21:48
<FORM METHOD="POST" ACTION="upload.jsp" ENCTYPE="multipart/form-data">
> <INPUT TYPE="FILE" NAME="FILE1" SIZE="50"><BR>
> <input type="hidden" name="flag" value="yes" >
>
> <INPUT TYPE="SUBMIT" name="Upload" VALUE="Upload">
></FORM>
>我怎样得到flag的值
>多谢!
...全文
76 点赞 收藏 7
写回复
7 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
leisurelph 2001-07-17
我down 的是免费的
回复
leisurelph 2001-07-17
thank you very much for kookoo(李林),problem is solved 
回复
kookoo 2001-07-17
JspSmartUpload是不是免费的啊?
回复
kookoo 2001-07-17
<%@ page language="java" import="com.jspsmart.upload.*"%>
<jsp:useBean id="myUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />

<HTML>
<BODY>

<%
myUpload.initialize(pageContext);
myUpload.setTotalMaxFileSize(100000);
myUpload.upload();

try
{
myUpload.save("/upload");
}
catch (Exception e)
{
out.println(e.toString());
}

String test = myUpload.getRequest().getParameter("flag");
out.println(test);
%>


</BODY>
</HTML>
回复
leisurelph 2001-07-17
你好 dule_yu(独乐)!
com.oreilly.servlet 包在什么地方?
再次感谢
回复
leisurelph 2001-07-17
多谢 dule_yu(独乐)
我先试试,再向你请教 
回复
dule_yu 2001-07-17
<%@ page import="com.oreilly.servlet.*"%>

<%
MultipartRequest multi = new MultipartRequest(request,".",100*1024*1024);
String XXXXX = multi.getParameter("flag");

%>
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2001-07-17 02:21
社区公告
暂无公告