Hi,
I had declared a public method in a JSP page and that method only
do "out.println("Testing");", but when i call that method, i got the error
message saying that out is undefined or not declared...
Can anyone please help me? Thanks.
regards,
Wayne
-
you need to pass 'out' as a parameter to the method
-Original Message-
From: Wayne Lian [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 8:59 PM
To: [EMAIL PROTECTED]
Subject: problem in using out.println in method
Hi,
I had declared a public method in a JSP pag
All the public methods will be declared out side the service method ,
& out is defined inside service
so "out" variable is not accessiable inside ur public method,
to solve this problem just pass out variable as an argument to ur method
cheers,
ravi
Wayne Lian wrote:
> Hi,
> I had declar
:59 PM
> To: [EMAIL PROTECTED]
> Subject: problem in using out.println in method
>
>
> Hi,
> I had declared a public method in a JSP page and that method only
> do "out.println("Testing");", but when i call that method, i got the
> error
> message
The type of the out object is "PrintWriter"
- Original Message -
From: Wayne Lian <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 06, 2001 1:18 PM
Subject: Re: problem in using out.println in method
> > you need to pass '
hat is the type of this 'out'? Just know it's from interface of JSPWriter.
>
> > -Original Message-
> > From: Wayne Lian [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 05, 2001 8:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: problem in using o
PROTECTED]
[EMAIL PROTECTED]
-Original Message-
From: Wayne Lian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 10:29 AM
To: [EMAIL PROTECTED]
Subject: problem in using out.println in method
Hi,
I had declared a public method in a JSP page and that method only
do &q
It doesn't matter what specific type it is - It's a JspWriter, as you've
said, and you can use the interface as the parameter type. Basic Java.
(Well, okay, Java 102, not Java 101.)
See the Java Tutorial for more on this stuff (http://java.sun.com/tutorial)
and try reading the error messages lite
Cut'n'paste and email me your code and I will have a look at it.
Its mostly a syntax problem.
Ravi
Are you an XPERT in what you do ?
Write articles for us in return for some
free Publicity. Click the link below :-
http://CyberConneXions.com/Articles
-
ent: Tuesday, February 06, 2001 8:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: problem in using out.println in method
>
>
> Cut'n'paste and email me your code and I will have a look at it.
>
> Its mostly a syntax problem.
>
> Ravi
> --
10 matches
Mail list logo