|
Re: JSP from multiple directories [message #231497 is a reply to message #231427] |
Mon, 18 May 2009 10:46 |
Eclipse User |
|
|
|
Originally posted by: mauro.molinari.cardinis.com
breako ha scritto:
> Hi,
>
> I wish to have a web project which I will be able to configure so that
> JSPs are picked up from two completly different directories. One will
> be in the standard J2EE place, but the other one will be an entirely
> different directory.
>
> Is this possible?
>
> Note: the reason for this is that I have a base project and then some
> customisation development which I want to keep completly separate during
> development time. It just makes things a lot cleaner.
>
> Any tips / help greatly appreciated.
It is supported, but there is no UI that allows to do that.
You have to change the hidden file org.eclipse.wst.common.component (use
Ctrl+Shift+R and type its name) in your project/.settings folder. Add as
many <wb-resource> entries with deploy-path="/" as you need. Example:
<wb-resource deploy-path="/" source-path="/folder-with-JSPs-1"/>
<wb-resource deploy-path="/" source-path="/folder-with-JSPs-2"/>
<wb-resource deploy-path="/" source-path="/folder-with-JSPs-3"/>
Save and that's it.
I suggest to enlist the folder containing your web.xml as the first one.
Then, please add your vote to one or both of the following enhancement
requests:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=133359
https://bugs.eclipse.org/bugs/show_bug.cgi?id=107039
Hope this helps.
Mauro.
|
|
|
|
|
Re: JSP from multiple directories [message #231580 is a reply to message #231543] |
Tue, 19 May 2009 13:25 |
Eclipse User |
|
|
|
Originally posted by: mauro.molinari.cardinis.com
breako ha scritto:
> Thanks Mauro. That all worked. Well done. I'm wondering do you know of
> any smart way I could write a script to this.
>
> Ideally I like to kick off an ant target which do a lot of eclipse
> configuration, including the above.
>
> Any ideas?
I think your Ant task should edit that file by adding the necessary
<wb-resource> elements. However, I can't suggest you anything more
specific (I never tried to accomplish that).
Mauro.
|
|
|
|
Re: JSP from multiple directories [message #517187 is a reply to message #517119] |
Fri, 26 February 2010 14:46 |
|
Do you mean a different path in the same project, or in a different project altogether? Is it a .tld file you're pointing to or referring to a .jar somehow? And with which version of WTP?
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.04461 seconds