On 5/10/02 11:30 PM, "[Vaishali S. Pandya]" <[EMAIL PROTECTED]> wrote:
> Hello all > i wrote a function using > <%! > fun(){ > System.out.println("Hello"); > } > %> > <% > fun(); > %> > and call it from the main code every thing is working well but "Hello" is not > printed why? no compile error is given I haven't done too much JSP/Servlet programming in a while, but I am pretty sure that you need to direct your output to the correct print stream. Printing it out to system.out won't print it to regular "web" output. I'm guessing that you would need to print it out via the response object. Hopefully my answer is helpful -- like I said, it's been a while. Regards, Andy =========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com