This thread is archived
2,312 Views 5 Replies Last post: Dec 1, 2005 4:46 AM by Scott RSS
Bronze 14 posts since
Nov 26, 2005
Currently Being Moderated

Nov 26, 2005 12:41 PM

make servlet output html

I am a newbie to plugin writing so please be patient:

 

I am trying to implement an in/out board that works similar to the presence plugin. I would like this to be accessible to everyone on the LAN/VPN. I was thinking of implementing this as a servlet.

 

I was able to get my test plugin to build and install ok using text/plain content type. But when I try to use text/html content type I am always redirected through the admin console. Is is possible to output html content from a custom servlet?

 

Also, I can''t seem to get the AuthCheckFilter.addExclude("myPlugin"); to work. If I am logged in, I either get the text/plain content I expected or my html content in the admin console. If I am not logged in, I get a NullPointerException

 

Any ideas?

 

Thanks in advance

Ryan Graham KeyContributor 1,886 posts since
Jan 17, 2003
Currently Being Moderated
Nov 30, 2005 8:31 AM in response to: Scott
Re: make servlet output html

Hi Scott,

 

Did you try adding the following in portion of the html you''re generating:

 

This will tell SiteMesh to not decorate that page and you won''t have to alter the sitemesh.xml file.

 

Thanks,

Ryan

Ryan Graham KeyContributor 1,886 posts since
Jan 17, 2003
Currently Being Moderated
Nov 30, 2005 6:04 PM in response to: Scott
Re: make servlet output html

Thanks for the tip!

 

No problem. Matt actually mentioned it in a thread a week or two back where he also pointed out that it is in the url=http://www.jivesoftware.org/builds/messenger/docs/latest/documentation/plugi n-dev-guide.htmlPlugin Development Guide[/url].

More Like This

  • Retrieving data ...

Bookmarked By (0)