No SS
out.println is printing only on server not on webpage
here 120 will be printed on my page but all
i
will not, which i try to print in function.




Hai,I have tried the code u have given.It is working fine.

System.out.println(0 will print on your tomcat.
out.println will print on your web page.(it is printing too)

What is your  actual problem ?....

s.subramanian
IonIdea Enterprise Solutions
Bangalore.
India.


----- Original Message -----
From: "[Vaishali S. Pandya]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 11, 2002 3:59 PM
Subject: Re: can't use out.println in function


> no dear
> it is also not working
> and as per my calique, this statment will print the line on
server(tomcat)
> try this
> <HTML>
> <HEAD>
> <TITLE> Factorial </TITLE>
> </HEAD>
> <BODY>
> <%!
>      public static int fact(int i){
>           System.out.println(i);
>           if (i==1){
>                return i;
>           }
>           return i*fact(i-1);
>      }
> %>
> <%
>      out.println(fact(5));
> %>
> </BODY>
> </HTML>
>
>
>
>
>
>
> <%!
> fun(){
> '
> %>Hello<%
> '
> '
> }
> %>
> <%
>      fun();
> %>
>
> I think you can use the above instead of System.out.println("Hello");
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to