Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Significance? org.eclipse.wtp
Significance? org.eclipse.wtp [message #213425] Wed, 07 May 2008 23:37 Go to next message
Vinay is currently offline Vinay
Messages: 36
Registered: July 2009
Member
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 #213434 is a reply to message #213425] Thu, 08 May 2008 05:39 Go to previous messageGo to next message
Ken is currently offline Ken
Messages: 10
Registered: July 2009
Junior Member
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.
> 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
>
Hi,Nagrik
if you are in WTP from eclipse,
the work folder is not your WebContent folder, you can find the real
folder in \workspace\.metadata\.plugins\org.eclipse.wst.server.core\
temp0 is the first web container.
for that, after rebuild you class file, you must click the Publish icon
in server view to public it to the real folder.



Ken
kenbeinside@gmail.com
Re: Significance? org.eclipse.wtp [message #213456 is a reply to message #213425] Thu, 08 May 2008 13:31 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
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
>
Previous Topic:How to place web files outside the application context?
Next Topic:no option to create dynamic web project
Goto Forum:
  


Current Time: Fri Oct 24 10:32:57 GMT 2014

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

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