Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » precompiled JSPs
precompiled JSPs [message #89773] Wed, 06 June 2007 08:20 Go to next message
Eclipse UserFriend
Originally posted by: mxp1.gmx.net

Hi all !

I want to use precompiled JSPs with the current and, in the future, with
the upcoming release (3.3) of equinox.

So far I have learned how to do this the tomcat way (as described in
http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html). Unfortunatly
this seems not to work with my existing equinox webapp.

How/Where am I supposed to register/put the precompiled JSPs with the
servletbridge ?

Greetings
Martin
Re: precompiled JSPs [message #89830 is a reply to message #89773] Wed, 06 June 2007 13:03 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Hi Martin,

Looks like you're doing things the right way.
After being precompiled you should just package the class files in your
bundles and register them like any other servlet -- e.g. registerServlet or
use the "servlets" extension point. Beyond that you need to ensure that your
bundle imports the necessary Jasper and Jsp dependencies.

What problems are you seeing?

-Simon

"Martin" <mxp1@gmx.net> wrote in message
news:c3673eb56a5910e99d0da110cf73bef5$1@www.eclipse.org...
> Hi all !
>
> I want to use precompiled JSPs with the current and, in the future, with
> the upcoming release (3.3) of equinox.
> So far I have learned how to do this the tomcat way (as described in
> http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html). Unfortunatly
> this seems not to work with my existing equinox webapp.
>
> How/Where am I supposed to register/put the precompiled JSPs with the
> servletbridge ?
>
> Greetings
> Martin
>
Re: precompiled JSPs [message #89856 is a reply to message #89830] Wed, 06 June 2007 16:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mxp1.gmx.net

Hi Simon !

How do mean register them like any other servlet ? Do mean registering
every single JSP of my 1000+ JSPs as servlets ?
Furthermore if a JSP gets changed the JSP would not be recompilied.

Greetings
Martin

Simon Kaegi wrote:

> Hi Martin,

> Looks like you're doing things the right way.
> After being precompiled you should just package the class files in your
> bundles and register them like any other servlet -- e.g. registerServlet or
> use the "servlets" extension point. Beyond that you need to ensure that your
> bundle imports the necessary Jasper and Jsp dependencies.

> What problems are you seeing?

> -Simon

> "Martin" <mxp1@gmx.net> wrote in message
> news:c3673eb56a5910e99d0da110cf73bef5$1@www.eclipse.org...
>> Hi all !
>>
>> I want to use precompiled JSPs with the current and, in the future, with
>> the upcoming release (3.3) of equinox.
>> So far I have learned how to do this the tomcat way (as described in
>> http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html). Unfortunatly
>> this seems not to work with my existing equinox webapp.
>>
>> How/Where am I supposed to register/put the precompiled JSPs with the
>> servletbridge ?
>>
>> Greetings
>> Martin
>>
Re: precompiled JSPs [message #89871 is a reply to message #89856] Wed, 06 June 2007 16:43 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
"Martin" <mxp1@gmx.net> wrote in message
news:101b03010b991fe549a6a0be87fc6785$1@www.eclipse.org...
> Hi Simon !
>
> How do mean register them like any other servlet ? Do mean registering
> every single JSP of my 1000+ JSPs as servlets ?
Yes. Normally running tomcats ant scripts will generate a web.xml snippet
that you can insert.
If you're using the http service directly write a loop to do the
registering.
If you're using http.registry I'd write a script to create the entries.

> Furthermore if a JSP gets changed the JSP would not be recompilied.
Modifying JSPs is fine for development however precompiling is something you
generally do just for production.
Another problem with modifying a JSP in production is that you lose
versioning info -- instead I'd create new version of the bundle.

HTH
-Simon

>
> Greetings
> Martin
>
> Simon Kaegi wrote:
>
>> Hi Martin,
>
>> Looks like you're doing things the right way.
>> After being precompiled you should just package the class files in your
>> bundles and register them like any other servlet -- e.g. registerServlet
>> or use the "servlets" extension point. Beyond that you need to ensure
>> that your bundle imports the necessary Jasper and Jsp dependencies.
>
>> What problems are you seeing?
>
>> -Simon
>
>> "Martin" <mxp1@gmx.net> wrote in message
>> news:c3673eb56a5910e99d0da110cf73bef5$1@www.eclipse.org...
>>> Hi all !
>>>
>>> I want to use precompiled JSPs with the current and, in the future, with
>>> the upcoming release (3.3) of equinox.
>>> So far I have learned how to do this the tomcat way (as described in
>>> http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html). Unfortunatly
>>> this seems not to work with my existing equinox webapp.
>>>
>>> How/Where am I supposed to register/put the precompiled JSPs with the
>>> servletbridge ?
>>>
>>> Greetings
>>> Martin
>>>
>
>
Previous Topic:Dynamic Bundle Discovery from Equinox Embedded in a J2SE Application
Next Topic:Problem with configurator bundle discovery
Goto Forum:
  


Current Time: Fri Apr 26 14:26:20 GMT 2024

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

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

Back to the top