Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Significance? org.eclipse.wtp
Significance? org.eclipse.wtp [message #213425] Wed, 07 May 2008 19:37 Go to next message
Eclipse UserFriend
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 01:39 Go to previous messageGo to next message
Eclipse UserFriend
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 09:31 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 18:45:51 EDT 2025

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

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

Back to the top