Hello i created this and i dont know how to debug it because when ever i create a script the part i hate is teh debuging so can some one please help me out and thank you very much
-->

<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>

hello i just debuged this so can some of you check if there is any bugs left adn if there are can you please fix them thank you

<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>

In the future please do not flood the forum with new threads related to same topic, just simply post bellow original and state the changes you made.
In case of posting code inside post please use [code] tags, if you have problem to use just click on message Help with Code Tags in any of the posts that have highlighted code and you will see quick tutorial

I wonder why the kid is using println statements for his html tags in a JSP...
He shouldn't of course be using ANY Java code at all, but this is the most extremely silly JSP code I've ever encountered (and I've encountered reams of it over the last decade).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.