Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

question in jsp

  Asked By: Lorraine    Date: Aug 20    Category: Java    Views: 511
  

i have a question in jsp that i have a code like below and i saved it to
test.jsp and then actual thing is that when I refresh my browser. it should look
at the command window launched when you started Tomcat, you will see our output
(in Windows, this window usually is titled java). The output will resemble the
following: Starting service Tomcat-Standalone Apache Tomcat/4.0.3 Starting
service Tomcat-Apache Apache Tomcat/4.0.3 Beginning of JSP code. i = 1 End of
JSP code. Look to this window when using System.out.println() to assist in
debugging our code.But it is not happening in my case so pls suggest me in this
case of code.

<html><% System.out.println( "Beginning of JSP code." ); int i = 1; if ( i == 1
) { System.out.print ( "i = " ); System.out.println( i );%> The value of i
is 1. <% } System.out.println( "End of JSP code." );%></html>

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Zachary Larson     Answered On: Aug 20

How about using the log() method?

 
Answer #2    Answered By: Russell Burns     Answered On: Aug 20
 
Didn't find what you were looking for? Find more on question in jsp Or get search suggestion and latest updates.




Tagged: