Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Equinox JSPFactory demo code?
Equinox JSPFactory demo code? [message #101987] Wed, 28 November 2007 07:47 Go to next message
Ambuj Kumar is currently offline Ambuj Kumar
Messages: 5
Registered: July 2009
Junior Member
Hi,

I am new to OSGI and was trying to use it for a web-app. Could someone post some demo code showing the usage of org.eclipse.equinox.jsp.jasper.registry.JSPFactory for serving jsp pages.


Regards,
Ambuj
Re: Equinox JSPFactory demo code? [message #102026 is a reply to message #101987] Wed, 28 November 2007 10:41 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon Kaegi
Messages: 381
Registered: July 2009
Senior Member
There was a webinar yesterday where a very simple example of setting up the
Jetty Http Service and among other things using the JSPFactory was demoed.
You might want to look at the recording (
http://live.eclipse.org/node/387 ). The source code used in the webinar
should be posted shortly and I'll update this thread.

HTH
-Simon


"Ambuj Kumar" <ambujkumar@gmail.com> wrote in message
news:18565561.6861196254080806.JavaMail.root@cp1.dzone.com...
> Hi,
>
> I am new to OSGI and was trying to use it for a web-app. Could someone
> post some demo code showing the usage of
> org.eclipse.equinox.jsp.jasper.registry.JSPFactory for serving jsp pages.
>
>
> Regards,
> Ambuj
Re: Equinox JSPFactory demo code? [message #102034 is a reply to message #102026] Wed, 28 November 2007 19:52 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon Kaegi
Messages: 381
Registered: July 2009
Senior Member
The source is now available alongside the webinar at the link below.

"Simon Kaegi" <simon_kaegi@ca.ibm.com> wrote in message
news:fik272$mcm$1@build.eclipse.org...
> There was a webinar yesterday where a very simple example of setting up
> the Jetty Http Service and among other things using the JSPFactory was
> demoed. You might want to look at the recording (
> http://live.eclipse.org/node/387 ). The source code used in the webinar
> should be posted shortly and I'll update this thread.
>
> HTH
> -Simon
>
>
> "Ambuj Kumar" <ambujkumar@gmail.com> wrote in message
> news:18565561.6861196254080806.JavaMail.root@cp1.dzone.com...
>> Hi,
>>
>> I am new to OSGI and was trying to use it for a web-app. Could someone
>> post some demo code showing the usage of
>> org.eclipse.equinox.jsp.jasper.registry.JSPFactory for serving jsp pages.
>>
>>
>> Regards,
>> Ambuj
>
>
Re: Equinox JSPFactory demo code? [message #102075 is a reply to message #101987] Thu, 29 November 2007 07:01 Go to previous messageGo to next message
Ambuj Kumar is currently offline Ambuj Kumar
Messages: 5
Registered: July 2009
Junior Member
Hi Simon,

Tried out the example and using jetty for jsp pages and servlets seems to be pretty straightforward. But i need to be able to do this using a Tomcat.

I used the servletbridge to this end. This means i now have a osgi container inside the tomcat instead of having the server start inside osgi (right?). I also created a bundle out of the sample code from the webinar. But this did not work out.

So how do i make the servletbridge aware of my plugin.xml?

Am i missing anything or am i totally off the track?

Regards,
Ambuj
Re: Equinox JSPFactory demo code? [message #102596 is a reply to message #101987] Thu, 06 December 2007 04:14 Go to previous message
Ambuj Kumar is currently offline Ambuj Kumar
Messages: 5
Registered: July 2009
Junior Member
Got that to work under Tomcat using the ContextPathServletAdaptor and the servletbridge.
Previous Topic:OSGi/Equinox on Java ME CLDC 1.1 IMP 1.0
Next Topic:Is this possible with jsp and osgi?
Goto Forum:
  


Current Time: Fri Jul 25 13:46:37 EDT 2014

Powered by FUDForum. Page generated in 0.02795 seconds