Hello,
Moving the 'SimpleNavigationTag()' class into a JSP scriptlet makes it
into an inner class with no access to 'out'.
I understand that I can either create an instance variable containing
the JspWriter, or reassign output.
Can anyone tell me how this is done?
Maybe I should build the unordered list in a StringBuffer, and output it
all at once rather than on the fly as 'drawChildren' does?
--code--
<%!
class printMe {
public JspWriter out = null;
public JspWriter setOut(JspWriter out) {
this.out = out;
return out;
}
}
%>
<%
printMe pm = new printMe();
pm.setOut(out);
SimpleNavigationTag snt = new SimpleNavigationTag(); Content page_obj =
Resource.getActivePage(request); Content activePage_obj =
Resource.getActivePage(request);
JspWriter out_obj = pm.setOut(out);
snt.drawChildren(page_obj,activePage_obj,out);
--error--
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
Regards,
Bob V
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------