• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Application development using eclipse

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
reply
    Bookmark Topic Watch Topic
  • New Topic