What is the best way to design a Web application?
The only difference between a Web program and any other kind of program is its default way of communicating with the outside world, which is via an enclosing web server. This means that a jsp page (or servlet) must accept a request, and then create a response, but in between, it can do anything it likes in order to build the response. The best approach is usually to define ordinary Java classes (or use ready-made ones) to help the pages or servlets do their job. If you put these in WEB-INF/classes (or in a packaged jar file in WEB-INF/lib) then the Web server will find them when it runs. It is also possible to call other servlets/jsp pages, contact other web sites, or make network connections, so as to make use of other existing services. When you recompile these supporting classes, you may have to restart Tomcat. Beware of reading about and using beans, or “Enterprise Java Beans”. The documentation on using these assumes you are a large business, and so sledgehammer techniques are put
Related Questions
- Does anyone know of any detailed architectural design patterns for organizing a web application with multiple servlets (and optionally, JSPs)?
- Whats the best way for a recent college graduate to start a career in web/graphic design?
- Which Online Software Application is the Best Online Software for Web Designers?