No completime error is there
but the output is unexpected
<HTML>
<HEAD>
<%!
int myval[]= new int[100];
int v=0;
%>
<TITLE> Factorial </TITLE>
</HEAD>
<BODY>
<%
int a=0;
out.println(v);
%><br><%
for (a=0;a<v;a++){
out.println(myval[a]);
}
out.println(fact(5));
%>
<%!
public int fact(int i){
myval[v++] = i;
if (i==1){
return i;
}
return i*fact(i-1);
}
%>
</BODY>
</HTML>
===========================================================================
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