Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » getting folders in server plguins on contextPath
getting folders in server plguins on contextPath [message #67845] Tue, 23 May 2006 20:29 Go to next message
Eclipse UserFriend
Originally posted by: duncan.krebsnet.com

Hi,
I'm wondering if anyone has any ideas how I can copy specified folders of
plugins to the webapp contextPath, for example some of my plugins contain
jsp pages that need to be executed in the servlet context enviornment. I'm
thinking as a worset case situation I can have one plugin that provides
all the web resources but then that turns ugly. Another way around might
be to use a Filter like they do for MyFaces contexts where the extensions
filter will map the resource url to an actual resouce in a jar, but thats
also a pain. Any ideas would be greatly appreciated. - Duncan
Re: getting folders in server plguins on contextPath [message #68130 is a reply to message #67845] Fri, 26 May 2006 08:02 Go to previous messageGo to next message
Harald Niesche is currently offline Harald NiescheFriend
Messages: 23
Registered: July 2009
Junior Member
Duncan Krebs wrote:
> Hi, I'm wondering if anyone has any ideas how I can copy specified
> folders of plugins to the webapp contextPath, for example some of my
> plugins contain jsp pages that need to be executed in the servlet
> context enviornment.

Can you explain the requirement to execute the JSP pages outside the
OSGi container?

I am asking because I packaged Jasper so that you can have JSPs inside
your bundles compiled and executed on demand ... see
http://www.osxa.org/wiki/JasperBundle for details.

> I'm thinking as a worset case situation I can have
> one plugin that provides all the web resources but then that turns ugly.
> Another way around might be to use a Filter like they do for MyFaces
> contexts where the extensions filter will map the resource url to an
> actual resouce in a jar, but thats also a pain. Any ideas would be
> greatly appreciated. - Duncan



Harald
Re: getting folders in server plguins on contextPath [message #68354 is a reply to message #68130] Tue, 30 May 2006 20:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: duncan.krebsnet.com

Harald Niesche wrote:

> Can you explain the requirement to execute the JSP pages outside the
> OSGi container?

> I am asking because I packaged Jasper so that you can have JSPs inside
> your bundles compiled and executed on demand ... see
> http://www.osxa.org/wiki/JasperBundle for details.

Hi,
I think the issue is that I don't have the whole picture nailed down. I
looked through your site and the jasper bundle makes sense. All I'm trying
to do is to achieve the functionality that will let me get the contents of
a jsp page using a bundle installed on the server. Also the location of
that bundle would be either in a pacakge or in a folder off of the root of
the bundle. Without having to figure out your whole framework is there a
simple way to just take the jasper bundle and use it along with the other
core server-side bundles in the equinox project? - Duncan
Re: getting folders in server plguins on contextPath [message #68364 is a reply to message #68354] Tue, 30 May 2006 22:38 Go to previous message
Harald Niesche is currently offline Harald NiescheFriend
Messages: 23
Registered: July 2009
Junior Member
Duncan Krebs wrote:
>> I am asking because I packaged Jasper so that you can have JSPs inside
>> your bundles compiled and executed on demand ... see
>> http://www.osxa.org/wiki/JasperBundle for details.
>
> Hi, I think the issue is that I don't have the whole picture nailed
> down. I looked through your site and the jasper bundle makes sense. All
> I'm trying to do is to achieve the functionality that will let me get
> the contents of a jsp page using a bundle installed on the server. Also
> the location of that bundle would be either in a pacakge or in a folder
> off of the root of the bundle. Without having to figure out your whole
> framework is there a simple way to just take the jasper bundle and use
> it along with the other core server-side bundles in the equinox project?

Sure -- the demo should show what you need. The whole point of OSGi is
to better separate dependencies.

You'll need several of the jakarta commons libraries (in the demo, they
are all inside the org.osxa.jakarta.commons_nightly.jar) as well as the
servlet APIs (which should already be provided by the server-side
bundles from the equinox project).

If you need any help getting the JasperBundle to work for you, don't
hesitate to ask.

Harald
Previous Topic:Specify classes to be included in Manifest
Next Topic:Help starting EventAdmin service!
Goto Forum:
  


Current Time: Thu Mar 28 14:59:03 GMT 2024

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

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

Back to the top