你们误解我的意思啦。在Dreamweaver中可以运行一部分的文件但是例如下面的就无法运行啦。
代码:
<%@ page import = "java.util.*,init.*" %>
<HTML>
<HEAD><TITLE>The Import Attribute</TITLE></HEAD>
<BODY>
<H2>The Import Attribute </H2>
<H3>
<%
String username = request.getParameter("username");
if (username==null ){
out.println("Welcome");
}else{
ClientInfo userInfo = ClientInfo.getClientInfo(username);
if (userInfo == null){
userInfo = new ClientInfo(4,username,"","","");
}
out.println("Hello "+username+",Your infomation below:<br>");
out.println("ID : "+userInfo.getNum()+"<br>");
out.println("Phone : "+userInfo.getPhone()+"<br>");
out.println("E-mail: "+userInfo.getEmail()+"<br>");
out.println("MSN : "+userInfo.getMsn());
}
%>
</H3>
This page was accessed on <%= new Date()%>
</BODY>
</HTML>
如果有这次引用的类包的话,就没有办法运行啦,会提示错误!
代码:
<%@ page import = "java.util.*,init.*" %>
代码:
<%@ page import = "java.util.*,init.*" %>
<HTML>
<HEAD><TITLE>The Import Attribute</TITLE></HEAD>
<BODY>
<H2>The Import Attribute </H2>
<H3>
<%
String username = request.getParameter("username");
if (username==null ){
out.println("Welcome");
}else{
ClientInfo userInfo = ClientInfo.getClientInfo(username);
if (userInfo == null){
userInfo = new ClientInfo(4,username,"","","");
}
out.println("Hello "+username+",Your infomation below:<br>");
out.println("ID : "+userInfo.getNum()+"<br>");
out.println("Phone : "+userInfo.getPhone()+"<br>");
out.println("E-mail: "+userInfo.getEmail()+"<br>");
out.println("MSN : "+userInfo.getMsn());
}
%>
</H3>
This page was accessed on <%= new Date()%>
</BODY>
</HTML>
如果有这次引用的类包的话,就没有办法运行啦,会提示错误!
代码:
<%@ page import = "java.util.*,init.*" %>