Significance? org.eclipse.wtp [message #213425] |
Wed, 07 May 2008 19:37  |
Eclipse User |
|
|
|
Hello Group,
After building my first web application I was wondering about two things.
1. The classes directory is not created inside WEB-INF, instead it is
created under a different directory named "build." I thought according to
spec, the java/servlet classes are supposed to reside under WEB-INF.
2. What is the significance of org.eclipse.wtp package and the directory
structure. Can I do without it and create my java/servlet class without
this package?
Any explanation please?
thanks.
nagrik
|
|
|
|
Re: Significance? org.eclipse.wtp [message #213456 is a reply to message #213425] |
Thu, 08 May 2008 09:31  |
Eclipse User |
|
|
|
Nagrik wrote:
> Hello Group,
>
> After building my first web application I was wondering about two things.
>
> 1. The classes directory is not created inside WEB-INF, instead it is
> created under a different directory named "build." I thought according
> to spec, the java/servlet classes are supposed to reside under WEB-INF.
As a matter of principle, Eclipse tries to keep built artifacts, like
class files, separate from source files. The WEB-INF folder under the
WebContent folder is part of the project's source tree for resources, so
compiled classes directed elsewhere as you have noted. Assembly into
the "war structure" occurs when the project is published to a server for
testing and when you export your project as a war file.
> 2. What is the significance of org.eclipse.wtp package and the
> directory structure. Can I do without it and create my java/servlet
> class without this package?
You can use whatever package you want for your servlets. I don't see
"org.eclipse.wtp" occurring in my projects, so I'm not clear on what
this refers to.
Cheers,
Larry
>
> Any explanation please?
>
> thanks.
>
> nagrik
>
|
|
|
Powered by
FUDForum. Page generated in 0.02927 seconds