Skip to main content



      Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Run a JSP from within a help plugin
Run a JSP from within a help plugin [message #623572] Mon, 19 October 2009 18:16 Go to next message
Eclipse UserFriend
Hi all,

I'm searching for a way to incorporate a JSP in a help plugin.

I assume that there is some extension point that will allow me to instruct the jetty JSP server to compile .jsp files within my plugin, but so far I've been unsuccessful finding this information in the docs. Any pointers at all would be much appreciated.

Thanks,
Doug
Re: Run a JSP from within a help plugin [message #623573 is a reply to message #623572] Mon, 19 October 2009 19:26 Go to previous messageGo to next message
Eclipse UserFriend
For what it's worth, I found a bug report (opened by me, go figure) referring to this behavior. The resolution suggests it is possible to compile and run a .jsp from a help plugin. The bug is

https://bugs.eclipse.org/bugs/show_bug.cgi?id=214946

I cannot, however, seem to make this work as described in the resolution description.

I'm using Eclipse 3.4.2, which is the only difference I can spot between the plugin description in the bug report and my own plugin.
Re: Run a JSP from within a help plugin [message #623764 is a reply to message #623572] Fri, 23 October 2009 22:29 Go to previous messageGo to next message
Eclipse UserFriend
It sounds as though you are close - does your plugin have dependencies to org.eclipse.equinox.jasper and org.eclipse.equinox.jasper.registry?
Re: Run a JSP from within a help plugin [message #623771 is a reply to message #623764] Wed, 28 October 2009 12:02 Go to previous message
Eclipse UserFriend
Got it.

The necessary change was to add a slash to the end of the servlet class attribute. The plugin.xml now contains the following:


<extension point="org.eclipse.equinox.http.registry.servlets">
<servlet
alias="/jsp/*.jsp"
class="org.eclipse.equinox.jsp.jasper.registry.JSPFactory:/ ">
</servlet>
<serviceSelector
filter="(other.info=org.eclipse.help)">
</serviceSelector>
</extension>


Note the slash at the end of org.eclipse.equinox.jasper.registry.JSPFactory:/

I don't quite understand why this is necessary, but adding it seemed to do the trick.

Now, on to my next challenge: getting access to Java functions defined in other plugins. Most notably org.eclipse.help.webapp.
Previous Topic:standalone html help and resource ids (contextIds)
Next Topic:Eclipse help very slow to start on Suse 11.0
Goto Forum:
  


Current Time: Fri Nov 07 06:23:04 EST 2025

Powered by FUDForum. Page generated in 0.14735 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top