Steps To Develop Web Application using Java
3) servlets
program executed inside servlet container, servlet container available inside
web server like tomcat so we should add server to Java class path.
after adding servlet API and server(tomcat), our setup is almost ready.
4) write code.
here service method is request processing method, it is an abstract method available inside GenericServlet class. we are writing our own business logic inside this method.
5) create Html file for displaying result on browser.
index.html
6) Finally, we need to map our servlet program with URL pattern inside WEB-INF.
because our tomcat server looking the servlet component with its mapping URLs.
web.xml
No comments:
Post a Comment