Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / December 2003

Tip: Looking for answers? Try searching our database.

developing servlets with NetBeans

Thread view: 
Andy Fish - 17 Nov 2003 18:34 GMT
Hi,

I am using netbeans 3.5 with the built in tomcat server to develop servlets,
but I am struggling over where to put the java source

It seems the only way you can sensibly debug a servlet with netbeans is to
have the source code all under WEB-INF/classes. This is fine for initial
prototyping but it is not a sensible structure for proper source code
control.

I have tried using the 'link' function which makes a directory appear
somewhere else, but this doesn't seem to work for servlet debugging.

Andy
Jose Rubio - 27 Nov 2003 05:54 GMT
Check out Eclipse

http://www.eclipse.org

And you can Google for a Tomcat plugin (can't remember the URL) It creates
the Java classes in a WEB-INF/src folder. And it gives you the option to
export to a WAR file without including the source.

Hope it helps,

Jose

> Hi,
>
[quoted text clipped - 10 lines]
>
> Andy
Jazz Jezebel - 28 Nov 2003 19:09 GMT
You can put your source anywhere if you then specify your target directory.
See:
"Specifying a Target Directory for Class Files" in NetBeans HELP.

Note that the Web Module is mounted by default with the alternate view
showing classes at the root - so you can make it the target for compiles.

Julia
Signature

Jazz Jezebel

> Check out Eclipse
>
[quoted text clipped - 23 lines]
> >
> > Andy
Andy Fish - 04 Dec 2003 10:36 GMT
Hey thanks Julia, that's exactly what I wanted :-))

> You can put your source anywhere if you then specify your target directory.
> See:
[quoted text clipped - 4 lines]
>
> Julia


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.