Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 14:37 Go to next message
sasha is currently offline sashaFriend
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 14:57 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
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: Sat Apr 20 04:38:22 GMT 2024

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

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

Back to the top