Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » help! trying to add dynamic web module facet, but...
help! trying to add dynamic web module facet, but... [message #667039] Tue, 26 April 2011 10:37 Go to next message
sasha is currently offline sasha
Messages: 58
Registered: July 2009
Member
I am unable to figure out how to fix the "further configuration available"
for my case.

My eclipse project looks like this
A/a1.jsp
A/mydir/b.jsp
A/WEB-INF/web.xml

It appears that my a1.jsp and mydir/b.jsp have to live under some directory
which can be mapped to /... according to the further configuration screen.
The default it offers to me is WebContent. so my case would have to be
A/webcontent/a1.jsp
A/webcontent/mydir/b.jsp

But I want it to pick up from my project root. I dont have any other
subdirectory where I have all jsps...
Re: help! trying to add dynamic web module facet, but... [message #667237 is a reply to message #667039] Wed, 27 April 2011 10:57 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
On 4/26/2011 10:37 AM, sasha wrote:
> I am unable to figure out how to fix the "further configuration available"
> for my case.
>
> My eclipse project looks like this
> A/a1.jsp
> A/mydir/b.jsp
> A/WEB-INF/web.xml
>
> It appears that my a1.jsp and mydir/b.jsp have to live under some directory
> which can be mapped to /... according to the further configuration screen.
> The default it offers to me is WebContent. so my case would have to be
> A/webcontent/a1.jsp
> A/webcontent/mydir/b.jsp
>
> But I want it to pick up from my project root. I dont have any other
> subdirectory where I have all jsps...
>
>

I'm not sure how much support remains for this arrangement of Dynamic
Web Project. This is no advantage that I know of for using the project
root as the "WebContent" folder. However, there are major
disadvantages. Primarily, there is no place to put non-webapp files,
such as Eclipse's ".project" file or perhaps some Ant script without
also putting that file _in_ the webapp's content.

It's not WTPs job to understand all the kinds of files that might exist
in a project and know which do and which don't or might not belong in
the webapp's content. Instead, you can create one or more folders in
the project dedicated to holding the content files. The first of these
defaults to the name "WebContent". That way your project has a place
for webapp content and elsewhere for other files so they don't overlap.
Thus, I would strongly encourage you to not use the project structure
of A given above.

Cheers,
Larry
Previous Topic:Expressions not being evaluated in JSP pages
Next Topic:Web Page Editor throws up an "Undefined" error window
Goto Forum:
  


Current Time: Mon Apr 21 08:59:20 EDT 2014

Powered by FUDForum. Page generated in 0.03823 seconds