This essay developed out of conversations I've had with several other programmers about why Java smelled suspicious. It's not a critique of Java!
Sycorax - complete tutorials
Programming Tutorials
" Java provides the industry - software companies and customer alike , an opportunity to create a true open computing environment where software is portable,
and customers benefit from increase competition. "
Java and the Future
December 1, 2008-LEJB 3.1: EJB New and Improved!
The EJB 3.0 specification was a huge improvement from what you were used to in the early versions of EJB. Available as an early draft, EJB 3.1 has many more features and is even easier to use.
December 1, 2008-Should Java Assert that Network I/O Can't Occur on the UI Thread?
Doing network I/O on the user interface (UI) thread is bad. Most developers know that and can tell you why; unfortunately, it's still done.
Register now to recieve special alert and latest technology news!
Advantages of the Servlet API
The advantages of the Servlet API are:
. Flexibility. Each time we need to add a new functionality to the server, all we have to do is write a new servlet specific to that set of requirements and plug it into the server, without modifying the server itself.
. Separation of responsibilities. The main server now only needs to worry about the network connections and communications part. The job of interpreting requests and creating appropriate responses is delegated to the servlets.
. It's Java. Java programmers don't need to learn a new scripting language. Also, they can use all the object-oriented features provided by Java.
. Portability. We can develop and test a servlet in one container and deploy it in another. Unlike proprietary solutions, the Servlet API is independent of web servers and servlet containers. We can "write once, run anywhere," as long as the containers
support the standard Servlet API .
One obvious limitation, or rather restriction, of the Servlet API is one that is common to all kinds of frameworks: you have to stick to the rules set forth by the framework. This means we have to follow certain conventions to make the servlet container happy. Another disadvantage involves the containers available in the market and not theServlet API itself. Theoretically, using the API , you can write servlets for almost any kind of protocol, including FTP , SMTP , or even proprietary protocols. Nevertheless, it would not be fair to expect the servlet container providers to build support for all of them. As of now, the Servlet specification mandates support only for HTTP through the javax.servlet.http package.
Advantages of Servlets over jsps
(1)servlets are comparatively faster than jsps.
Advantages of Jsps over servlets
(1)Easy to write and maintain and comparatively developer friendly
(2)Developer provided with implicit objects that reduces burden
(3)You can mix jsp code and html code together in a single page
<< Features of Servlet 2.5 || Advantages of Servlets over CGI >>