I believe you are mistaken, it is my understanding that method can not be
placed inside of scriplet tags, they can only be declared in declarations.
If you want to use the implicit objects that you would have available in the
service method, then you would need to pass those objects into the methods,
when you call them. For example:
<%!
foo(JSPWriter out) throws ServletException, IOException
{
out.println("<b>something</b>");
}
%>
<%
foo(out);
%>
George
-----Original Message-----
From: Xu Liangwu [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 03, 2000 2:43 PM
To: [EMAIL PROTECTED]
Subject: about how to define a method inside scriptlet
Hi,
I read some posting regarding the difference between defining a
variable
inside declaration tag and scriptlet tag. From the syntax I know methods
can also be defined inside scriptlet tag. I got confused because everything
inside scriptlet will be placed in the service() method of the resulting
servlet.
how could a method appear in service() method ?
Thnks for your answer !
Liangwu Xu
--------------------------------------
Liangwu Xu
Email : [EMAIL PROTECTED]
Home : (314)361-0571
Office : (314)515-4572
--------------------------------------
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
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".
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