This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am not talking about servlets. I want to know where( ie which directory )should I save my JSP, HTML, and JAva beans . I am using Javawebserver2.0 and how do I debug my JSP program What I get is HTTP 500 error. I am not able to find out where I have made the mistake and what is my mistake. Please help me.
If Java webserver 2.0 is compatible with the servlet 2.2 API, everything is laid out very specifically in the API. The reason being that Sun wants it to be possible to just drop in a complete application in a "WAR" for Web Application Resource file and the server will auto-magically expand that file and put the parts in their standard places. HTML and JSP files go in the same directory because you address a JSP file just like an HTML file. As I recall, servlet files go in Web-inf/classes relative to the application root. You have to map the name (alias) that you want to refer to the servlet by to the actual class in the web.xml file for that application. It is really pretty complicated but very flexible. It is all laid out in the servlet 2.2 API document. The Webserver should have come with at least one complete example you can study.