Hello,
I want to code a method in a class for outputting a report in HTML. The
layout is too complex to use displaytag.
I don't want to build and return a StringBuffer, but have it print as it
goes.
I'm obviously not grasping something about JSP and their output streams.
The test code below returns this error.
"cannot resolve symbol : method getJspContext()"
How can I get the method to print on the fly?
<%@ page contentType = "text/html"
import="javax.servlet.jsp.PageContext,javax.servlet.jsp.JspContext" %>
<%!
public class OutTest {
public void test_output(String testout) {
PageContext pageContext = (PageContext) getJspContext();
pageContext.getOut().println(testout);
}
}
%>
<%
OutTest ot = new OutTest();
ot.test_output("Hello World!");
%>
Regards,
Bob V
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------