关于JSP的问题!打开文件对话框的问题,请教高手!
<%@ 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代码中可这么写吗为什么我运就是出错呢没有对话框呢?
请教各位老师请多多帮忙!