Java 联机运行.JSP文件
我在尝试安装TomCat服务器时遇到了很多困难,因此我可以在线运行一些java服务器页面代码,而不是浪费时间吗?我的时间很短,需要编译下面的代码并找出错误。如果有人能带我去一个可以在线编译JSP的网站,那就太棒了!谢谢你的帮助Java 联机运行.JSP文件,java,html,jsp,compiler-construction,Java,Html,Jsp,Compiler Construction,我在尝试安装TomCat服务器时遇到了很多困难,因此我可以在线运行一些java服务器页面代码,而不是浪费时间吗?我的时间很短,需要编译下面的代码并找出错误。如果有人能带我去一个可以在线编译JSP的网站,那就太棒了!谢谢你的帮助 <HTML> <HEAD> <TITLE>JSP Debugging</TITLE> </HEAD> <BODY> <% import java.io.*; %> <% impor
<HTML>
<HEAD>
<TITLE>JSP Debugging</TITLE>
</HEAD>
<BODY>
<% import java.io.*; %>
<% import java.util.Date; %>
<% import java.util.Enumeration; %>
<%
response.setContentType("MIME");
Date today = new Date(12,20,2004);
Date created = new Date(session.getCreationTime());
Date lastAccessed = new Date(session.getLastAccessedTime());
out.print("<h1>Today is " );
out.print(today);
out.print("</h1>" );
out.print("This session has the following characteristics:<br>" );
out.println("<br>ID: ");
<%= session.getId(); %>
out.println("Created: " + created);
out.println("Last Accessed: " + lastAccessed);
out.println("<br>Max Inactive Interval: " +
session.getMaxInactiveInterval());
%>
</BODY>
</HTML>
JSP调试
使用Glassfish服务器下载Netbeans(JavaEE)。您不必担心安装任何其他东西来运行代码
注意:请确保选择与您安装的JDK兼容的正确版本和版本
在eatj.com上开个账户,或者red只为一只tomcat提供了免费档位