Michal Belicek,

You can't use the implicated "out " object directly within your declaration because

whatever you define will be outside of the "_jspService" method, which is where
"out" and some other objects being defined by the sever.  If you really want use
it, you can pass the JspWriter as a parameter, then use it whatever you want.
Something like the following:
<html>
<head>
<title>Greetings</title>
</head>
<body>
<%@ page import="java.io.*" %>

<%! public void Mytest(JspWriter out)throws IOException{
out.println("this is a test");
} %>

<% Mytest(out);%>



</body>
</html>

Hope this will help.

Yi Liu

--
Java Programmer |INVISIBLE.INK | http://www.inink.com
1400 Old Country Road Suite 408 | Westbury, NY 11590
Phone: (516) 338 - 5283  Ext.148 | Fax: (516) 876 - 8032

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

Reply via email to