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 'out' as a parameter to the method
 

 what 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 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 saying that out is undefined or not declared...
  Can anyone please help me? Thanks.


 regards,
 Wayne

 -
 Everyone should have http://www.freedom2surf.net/


===
 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://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: problem in using out.println in method

2001-02-06 Thread ravi

try this code

% print(out); %

%! public void print(JspWriter newout){
try{
newout.println("hello world");
}catch(Exception e){}
} %

cheers,
ravi

Wayne Lian wrote:

  you need to pass 'out' as a parameter to the method
 

 what 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 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 saying that out is undefined or not declared...
  Can anyone please help me? Thanks.

 regards,
 Wayne

 -
 Everyone should have http://www.freedom2surf.net/

 ===
 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://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: problem in using out.println in method

2001-02-06 Thread Ramesh, Kesav

out is a default supplied printwriter object. you are making this as a
string.
try to take that "" from that and it will work


Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL 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 "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

-
Everyone should have http://www.freedom2surf.net/

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 literally next time. They're not written
in gibberish.


  you need to pass 'out' as a parameter to the method
 

 what is the type of this 'out'? Just know it's from interface of
JSPWriter.
 
  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.


_
Get your FREE download of MSN Explorer at http://explorer.msn.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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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



At 04:59 AM 2/6/01 +, you wrote:
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

-
Everyone should have http://www.freedom2surf.net/

===
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://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: problem in using out.println in method

2001-02-06 Thread Shawn Zhu

No need to do that, Wayne. =)

Just redefine your public method to include the (JspWriter out)
%! void aF(JspWriter out){
out.println("testing");
}
%
...
% aF(out); %

 -Original Message-
 From: Ravi Prashanth [mailto:[EMAIL PROTECTED]]
 Sent: 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
 
 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
 


 At 04:59 AM 2/6/01 +, you wrote:
 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
 
 -
 Everyone should have http://www.freedom2surf.net/
 
 =
 ==
 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://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

 ==
 =
 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://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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

-
Everyone should have http://www.freedom2surf.net/

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 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

-
Everyone should have http://www.freedom2surf.net/

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 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

 -
 Everyone should have http://www.freedom2surf.net/

 ===
 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://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: problem in using out.println in method

2001-02-05 Thread Wayne Lian

 you need to pass 'out' as a parameter to the method


what 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 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 saying that out is undefined or not declared...
 Can anyone please help me? Thanks.


regards,
Wayne

-
Everyone should have http://www.freedom2surf.net/

===
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets