"out.println" in function causes "cannot resolve symbol"?
jimcplAug 10 2004 — edited Aug 11 2004Hi,
I'm somewhat new to JSPs, and have a small JSP that calls an embedded function:
<%@ page language="java" %>
<%!
static void doit(String s)
{
out.println(s);
return;
}
%>
<%
doit("Hi there from testfunc.jsp");
%>
And the above is causing an error "Cannot resolve symbol" on the "out.println()" line.
Is the "out" object not available inside the function?
If so, is there any way to pass "out" to the function, say as "xx", so that I can do an "xx.println()" inside the function?
Thanks,
Jim