Hello all,
I am attempting to write a plugin that will expose a selected user’s roster.
I have looked at the presence plugin and the userservice plugin as a starting point.
The one problem I have is that my servlet output stream is wrapped in the sitemesh framework.
Basically if I navigate to my servlet, I see what I want but it is embedded in the admin framework.
Not sure why this is happening but perhaps it is because of my directory structure?
Here it is:
RosterPlugin.jar root level directories below
classes
- com – myorg – Roster_Plugin (implements Plugin) and RosterServlet (extends HTTPServlet)
META-INF – manifest.mf
web – WEB-INF – web-custom.xml
plugin.xml
Now web-custom has the following:
Sorry, couldnt figure out how to escape the less-than greater-than chars.
<?xml version=‘1.0’ encoding=‘ISO-8859-1’?>
<!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”>
<web-app>
<!-- Servlets -->
<servlet>
<servlet-name>RosterServlet</servlet-name>
<servlet-class>com.myorg.RosterServlet</servlet-class>
</servlet>
<!-- Servlet mappings -->
<servlet-mapping>
<servlet-name>RosterServlet</servlet-name>
<url-pattern>/roster</url-pattern>
</servlet-mapping>
</web-app>
I dont have a web.xml as it seemed like it was only needed when the admin console required modification or addition.
As I said, the only problem I am having is the “wrapping” of the servlet’s output stream.
Any ideas?
TIA!
Message was edited by: gforty
Sorry, I figured it out,
I found the following thread from a few years back.
http://www.igniterealtime.org/community/message/107868#107868
Message was edited by: gforty