No completime error is there
but the output is unexpected
<%!
int myval[]= new int[100];
int v=0;
%>
Factorial
<%
int a=0;
out.println(v);
%><%
for (a=0;a
<%!
public int fact(int i){
myval[v++] = i;
if (i==1){
return i;
thanks to Bhushan and ss
but i had tried it also before mail u but i got some other errors
can u please try to solve this and mail me the code?
can i use static variables in recursion?
as my v will be increased in each call of fact(), can i take it static?
and what does it mean by static function
** IMPORTANT MESSAGE **
This e-mail message is intended only for the addressee(s) and contains information
which may be confidential. If you are not the intended recipient please advise the
sender by return email, do not use or disclose the contents, and delete the mes
Hai All,
How will i call a crystal reports in the browser from jsp?
Regards
Elango Palani
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
hi all,
i am working on tomcat 3.2.1 and now our project is going live on tomcat
4.0.3. but i am facing problems in installing my context in the new tomcat.
i have gone through the docs and installed tomcat accordingly. for setting
up the context i am not able to do so.in the docs also its not cle
inside static method u cannot call a non-static variable.
make the variable static...
s.subramanian
IonIdea Enterprise Solutions
Bangalore
- Original Message -
From: "[Vaishali S. Pandya]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 10:40 AM
Subject: Re: how to
You have declared the method as static and the variable is a nonstatic one. Either
declare the variable as static or make the method nonstatic.
-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:40 AM
To: [EMAIL PROTECTED]
Subject: Re:
No,
in <% %> will not be global
it will give undefined variable error while using them
u have to use <%! %> tag to declare global var
Vaishali
RIL
Ahmedabad
just declare these varibales within the tag <% %>
say after your head tag.
Regards
Ramesh Kesavanarayanan
[EMAIL PROTECTED]
>
Can't make a static reference to nonstatic variable myval
this is the error i get in this code
Factorial
<%!
int myval[]= new int[100];
int v=0;
%>
<%
int a=0;
out.println(v);
for (a=0;a
<%!
public static int fact(int i){
myval[v++] = i;
if
just declare these varibales within the tag <% %>
say after your head tag.
Regards
Ramesh Kesavanarayanan
[EMAIL PROTECTED]
> -Original Message-
> From: [Vaishali S. Pandya] [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 10:12 AM
> To: [EMAIL PROTECTED]
> Subject: how to us
By defining the variable like this
<%!
//declare global variable here
%>
-Original Message-
From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: how to use global variable?
hello all
good morning
as my prev que,
i trie
hello all
good morning
as my prev que,
i tried to use function and not able to use out.println in function
so now i want to use a global array and want to add all values in array and
will print that array in main code
but i don't know how to make an array global.
see the code
Factorial
<%!
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 p
I tried your code on IPlanet 6.0 webserver and there System.out worked fine after
setting the out stream
System.setOut(new PrintStream(new
FileOutputStream("D:/TreasureHunt/Code/logs/error.log")));
The out.println will not work in the declared method as the out is declared and
initialized in
OK, so I got a bit of an odd question here. I've been programming internet
applications for a few years now and I started with JSP because of a previous
background with Java applications. However, I've found that in my area, getting
shared hosting with Java support is the next closest thing to imp
I have an application in jsp that is working fine on Oracle9Ias on windowsNt,but
giving problem on
Oracle9Ias on unix.The problem exactly is with the session variable.Value of the some
of the session variables is available to me on Nt and same variables i am unable to
get on unix.
I have a p
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 -
- Original Message -
From: Kapil
To: [EMAIL PROTECTED]
Sent: Sunday, May 12, 2002 6:27 PM
Subject: PROBLEM REGARDING SESSION IN UNIX OPERATING SYSTEM
I have a problem in unix operating system.
My code is working fine in windows operating system but it is giving me problem in
unix
18 matches
Mail list logo