problem in using out.println in method

2001-02-05 Thread Wayne Lian
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 -

Re: problem in using out.println in method

2001-02-05 Thread Uday Prajapati
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

Re: problem in using out.println in method

2001-02-05 Thread ravi
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

Re: problem in using out.println in method

2001-02-05 Thread Wayne Lian
: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

Re: problem in using out.println in method

2001-02-06 Thread Mahesh Gangarapu
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 '

Re: problem in using out.println in method

2001-02-06 Thread ravi
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

Re: problem in using out.println in method

2001-02-06 Thread Ramesh, Kesav
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

Re: problem in using out.println in method

2001-02-06 Thread Joseph Ottinger
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

Re: problem in using out.println in method

2001-02-06 Thread Ravi Prashanth
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 -

Re: problem in using out.println in method

2001-02-06 Thread Shawn Zhu
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 > --