关于JSP的问题!打开文件对话框的问题,请教高手!

strongsoft strongsoft 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.awt.FileDialog"%>
<html>
<head>
<title>
zq
</title>
</head>
<body bgcolor="#ffffff">
<h1>
JBuilder Generated JSP
<%
//FileDialog opendg = new FileDialog(this,"LOAD",FileDialog.LOAD);
FileDialog fileDialog=new java.awt.FileDialog(this);
fileDialog.setMode(FileDialog.LOAD);
fileDialog.setTitle("Choose the browser to use:");
fileDialog.setVisible(true);
fileDialog.show();
%>
</h1>
</body>
</html>

请问在JSP代码中可这么写吗为什么我运就是出错呢没有对话框呢?
请教各位老师请多多帮忙!
...全文
评论 14
收藏 已收藏
分享
返回顶部
strongsoft
Web 开发 81,108 成员 341,721 内容