RE: Multiple (virtual) web app roots

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

RE: Multiple (virtual) web app roots

Patrick Lightbody-2

Greg – can you confirm if I’m on the right track? This would help Kristian as well.

 

_________________
Patrick Lightbody
Professional Services
Jive Software
[hidden email]
www.jivesoftware.com

317 SW Alder, Ste 500
Portland, OR 97204
ph (503) 295-6552
fx (503) 961-1047


From: [hidden email] [mailto:[hidden email]] On Behalf Of Kristian Nordal
Sent: Monday, August 15, 2005 4:55 AM
To: [hidden email]
Subject: Re: [Jetty-support] Multiple (virtual) web app roots

 

 

On Aug 11, 2005, at 6:06 PM, Patrick Lightbody wrote:



Looks like this is possible by subclasses WebApplicationContext and overriding getResource(). Greg, is that right?

 

Hi,

 

I would like to be able to do much of the same. I want a WEB-INF directory to supersede another, making it possible to edit my templates and JSPs while Jetty is running. 

 

Webapp (deployed location):

...

WEB-INF/classes/*

WEB-INF/velocity/*

WEB-INF/jsp/*

...

 

Source location:

WEB-INF/velocity/*

WEB-INF/jsp/*

 

I start Jetty embedded.

WEB-INF/classes/ must be available from the deployed location, but I need the other directories to be superseded by the ones in the source location.

 

I guess we need to do it in the same way. Let me know if you manages it.

 

--

Cheers,

Kristian



 

_________________
Patrick Lightbody
Professional Services
Jive Software
[hidden email]
www.jivesoftware.com

317 SW Alder, Ste 500
Portland
, OR 97204
ph (503) 295-6552
fx (503) 961-1047


From: [hidden email] [[hidden email]] On Behalf Of Patrick Lightbody
Sent: Wednesday, August 10, 2005 9:41 AM
To: [hidden email]
Subject: [Jetty-support] Multiple (virtual) web app roots

 

Is there any way to hack Jetty in to supporting multiple webapp roots? Not a big deal, but it’d be nice to emulate the feature that IDEA provides where webapps can“extend” other webapps. The basic idea is to overlay the two directory structures:

WebAppX:

/foo.jsp

/bar.jsp

/WEB-INF/web.xml

WebAppY:

/bar.jsp

/baz.jsp

/WEB-INF/web.xml

/WEB-INF/sitemesh.xml

When Y extends Z, you get:

/foo.jsp

/bar.jsp (Y)

/baz.jsp

/WEB-INF/web.xml (Y)

/WEB-INF/sitemesh.xml

I looked at doing this with the WebApplicationContext, but I couldn’t quite figure it out.

Patrick

_________________
Patrick Lightbody
Professional Services
Jive Software
[hidden email]
www.jivesoftware.com

317 SW Alder, Ste 500
Portland
, OR 97204
ph (503) 295-6552
fx (503) 961-1047