I'm trying to use the includeServlet macro

I added this to web.xml

   <servlet>
      <servlet-name>hello</servlet-name>
      <jsp-file>/hello.jsp</jsp-file>
   </servlet>

I created hello.jsp in .../webapps/xwiki/WEB-INF directory with these
contents

<HTML>
<BODY>
Hello!  The time is now <%= new java.util.Date() %>
</BODY>
</HTML>

tried to enter this into wiki page

#includeServlet("/hello.jsp")   - and receive message:

2008-04-29 22:00:19,625 [http://localhost:8080/xwiki/bin/view/Sandbox/]
[P1-19] WARN  xwiki.XWiki                     - Exception including url:
/hello.jsp 
java.lang.NullPointerException
        at
com.xpn.xwiki.web.includeservletasstring.BufferedResponse.getBufferAsByteArray(BufferedResponse.java:80)
        at
com.xpn.xwiki.web.includeservletasstring.IncludeServletAsString.invokeServletAndReturnAsString(IncludeServletAsString.java:69)
  
so I tried this

#includeServlet("hello.jsp")   - enter this and the includeServlet code
seems to recursively call itself forever   until you get a stack overflow

Thanks for any help

-- 
View this message in context: 
http://www.nabble.com/includeServlet-help.-tp16974118p16974118.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to