•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 401,512 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,332 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 725 | Replies: 3
![]() |
•
•
Join Date: Mar 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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
-->
-->
javascript Syntax (Toggle Plain Text)
<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>
Last edited by WolfPack : Mar 23rd, 2008 at 3:33 am. Reason: Added code tags. Use them when you post code.
•
•
Join Date: Mar 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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 Syntax (Toggle Plain Text)
<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>
Last edited by peter_budo : Mar 24th, 2008 at 5:20 am. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,218
Reputation:
Rep Power: 10
Solved Threads: 270
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
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
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,693
Reputation:
Rep Power: 18
Solved Threads: 195
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).
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).
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- jsp and mysql (JSP)
- how to use jsp and tomcat (JSP)
- Can't run JSP in Browser (JSP)
- Passing arguments to jsp file (Java)
- Word.doc upload using JSP (Java)
- Can't run JSP in Browser (Web Browsers)
- JSP and Oracle (JSP)
Other Threads in the JSP Forum
- Previous Thread: How To Filter Invalid(vulgar) words in JSP
- Next Thread: Displaying an image in JSP using expressions tag



Linear Mode