This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I trying to get into the world of J2EE, building my own Servlet, and it seems not so smooth and easy... I need help.
I working with the Intellij environment , I open New Project -> web service->Apache Axis. Everything was great. But then, I added
my own MyServlet extends HttpServlet , put a breakpoing in "my init()" and "my doGet()" and was expecting, execute the server (apache)
and expected to see the program stop on my breakpoint, but nope.
Can somebody help me? I guess the problem is the definition in web.xml, but I dont know how to change it.
Here is my current xml:
Change? No, the problem is that you don't have a definition in that web.xml file for your MyServlet class. You have to put one in there. Hint: it should look like the other ones which are already there.
You do not need all that web services crap clogging things up and getting in the way. It's just going to make things that much harder to get going.
My recommendation is to grab a copy of the Servlet Specification and read it from cover to cover before proceeding any further. It's a surprisingly easy read and will let you know what's what with regards to servlets.
Joined: Feb 26, 2009
I made it, at last.
I dont understand one thing, why dont keep things simple?
I've just learn learn the ASP.NET with great videos made by microsoft, they keep things simple, and explain
step by step, in a video/pdf.
Why there is nothing like that for Java/J2ee???
Joined: Aug 16, 2007
Material? There is tons of material out on internet. Google it.
Video? I have seen couple on www.youtube.com for Java. I am sure you will get some for J2EE(now Java EE) too.