aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Application development using eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Application development using eclipse" Watch "Application development using eclipse" New topic
Author

Application development using eclipse

shawn kennedy
Ranch Hand

Joined: Oct 31, 2002
Posts: 67
can someone please tell me how i could use eclipse for developing servlets jsp and ejb.I dont seem to understand the exact purpose of an ide meaning besides writing my code for the j2ee components and debugging what else can i do .Can someone point out a tutorial which from whi8ch i can learn to use eclipse for developing an application consisting of ejb,jsp and servlets.Someone pls help im in deperate need of this.
what all do i need to know when i say that i know how to use an ide
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

I can't say anything specific to using Eclipse with EJBs/JSPs etc...
BUT -- some of the real powerful things that IDEs like Eclipse and IntelliJ can do for you is refactoring.
Ever need to change the name of a variable from "blah" to "stuff"? It's a huge pain to go to every line and change it manually. But with a good IDE you can right click on the variable and select refactor | Change Name -- and it will search through all yoru code and make the appropriate changes.
Ever need to add a parameter to a method signature? It's a huge pain to go to every place in your program where that method gets called and add that parameter. But again, with a good IDE, you can right click on the method and select refactor | change method signature -- and it will search through your code for all calls to that method adn update the line to include teh new parameter.
Ever look at a chunk of lines in a method and say "ya know... that would be much better if it were its own method" -- then you have to cut and paste it to a different location, add the return statement, create the method signature and finally call the method from your original class. With a good IDE you can highlight the code and right click refactor | Extract Method. And Voila -- it does that all for you.
Another snazzy thing an IDE can do is automatically create Getter and Setters based on your member variables.
I think it can do similar things for EJBs with creating the home/remote stub/skeleton stuff -- but I don't know all tha for sure.
Anyway -- hope that helps. IDEs are much more than pretty code-formatters and debuggers. They can really help you code quicker and more efficiently too.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Write code in such a way that you don't need a debugger
The moment you need that debugger to find out where and why something is wrong is the moment you should realise that your code is fatally flawed and up for a rewrite
Seriously, I've been writing Servlets and JSPs for a long time now and hardly ever used a debugger on them.
Initially because the platforms didn't even support debugging them, now because I don't need to.
Use deliberate logging in development which you can easily turn off and on at will at deployment time. If the log is good it's more valuable than any debugger (especially as many problems you will encounter are race conditions that are especially hard to duplicate at will during a debug run, like two exactly simultaneous requests for the same bit of data).


42
raj madhuram
Ranch Hand

Joined: Oct 10, 2001
Posts: 71
You can use the Tomcat plugin from Sysdeo to develop/debug your servlets and jsps. You may also want to checkout Kinzan's Studio which is an eclipse plugin that allows you to visually assemble J2EE based apps.
http://www.kinzan.com/products_technology.html
http://www.sysdeo.com/eclipse/tomcatPlugin.html
- Raj (raj@kinzan.com)
Originally posted by shawn kennedy:
can someone please tell me how i could use eclipse for developing servlets jsp and ejb.I dont seem to understand the exact purpose of an ide meaning besides writing my code for the j2ee components and debugging what else can i do .Can someone point out a tutorial which from whi8ch i can learn to use eclipse for developing an application consisting of ejb,jsp and servlets.Someone pls help im in deperate need of this.
what all do i need to know when i say that i know how to use an ide
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application development using eclipse