I want to be clear about using the netbeans
IDE to implement
java EE solutions. I’ve been getting myself acquainted with JAVAEE technologies in recent days and from my findings, I’ve discovered that it’s a good medium to start with. I have basic knowledge about how the IDE operates but I’ll appreciate if someone can clarify (giving practical steps on the basis of the IDE) on the issues I will raise about how to organize my codes for JAVAEE solutions on the netbeans IDE.
I want to create a basic web application and possibly try out others to gain expertise with JAVAEE solutions using the netbeans IDE. I intend to start with
servlets before proceeding with
JSP. The question I’m raising is based on a recent solution I tried to implement using netbeans.
(1) Firstly, how do I create a netbeans project that constitutes only a servlet and an associated resource like an html page with no index.jsp template. I want a basic application in which a user enters an employee ID from the HTML front end and the servlet on the basis of the supplied ID retrieves the employee data from a database and displays it. I have code for these web components (including database access) but I’m not very clear about implementing it on netbeans. Why I’m asking this question is because I feel the index.jsp within the project I created is interfering with the servlet file.
(2) A dialog came up in the process of creating the servlet file suggesting I (may) supply initialization parameters. I’ll appreciate if someone can highlight on how the supply of initialization parameter is applicable to the problem presented above and how (and in which context) I’m to supply these parameters in netbeans for solutions in general.
(3) The issue of URL mapping isn’t totally clear to me as well. I’ll appreciate a clarification of this issue with respect to the present problem and how to implement this in netbeans. With a clarification of these fundamental issues I believe I should be good to go with other problem solving ventures in the domain of servlets before going into JSP which I’m aware is based on servlet technology.
Olakunle Oni