JAVA通用開發框架(Java Common Development Framework,簡稱JCDF)是基于J2EE(Java2 platform, Enterprise Edition)開發平臺,面向企業的分布式開發框架。JCDF集中JSP(Java Server Pages),servlets,EJB(Enterprise JavaBeans)組件,JDBC,JNDI(Java Naming and Directory Interface),標簽庫(TagLib),XML文檔格式等關鍵技術,采用眾多開發模式,為基于J2EE平臺開發提供了一套標準、健壯、安全的開發流程,對于許多在軟件工程中經常遇到的問題,提供了解決、實現方案。
Fully revised to cover the latest standards and technologies, XML and Java(TM), Second Edition provides the practical solutions developers need to design powerful and portable Web-based applications. Featuring step-by-step examples, this book focuses on harnessing the power of Java(TM) and XML together to streamline the development process.
XML and Java(TM), Second Edition provides new coverage of emerging areas such as document management, databases, messaging, servlets, JDBC, data binding, security, and more. It begins with an overview of XML programming techniques, standard APIs, and tools. Building upon this foundation, the book goes on to cover the latest technologies, including DOM Level 2, SAX2, XSLT, SOAP, WSDL, and UDDI. It explores the role of these major middleware technologies in XML and Java-based Web application development, as well as the limitations and potential pitfalls.
Start it with this document[13 pages only] if you want to develop some good web application using Java instead of reading large books.
This document prepared by myself. Clearly explains what is JDBC. and how you can connect to a particular database through JSP and servlets. Examples are given.
The purpose of this chapter is to bring relative newcomers up to speed in writing, compiling, and packaging servlets and JSPs. If you have never developed a servlet or JSP before, or just need to brush up on the technology to jumpstart your development, then the upcoming recipes provide simple programming examples and an overview of the components that you require on the user classpath to compile servlets.
Java has become a confusing world. Five years ago, there were few decisions to make once
you started programming in Java—you used AWT for graphical user interfaces, sockets for
network programming, and hacked together everything else you needed. Since then, though,
the APIs available for the Java language have grown, and grown. . . and grown. Now you can
dabble in Swing, servlets, Enterprise JavaBeans (EJB), JavaMail, and more. Additionally,
there are now packages of APIs, like the Java 2 Micro Edition (J2ME) and Java 2 Enterprise
Edition (J2EE). While these packages seem to be nicely wrapped bundles of useful APIs, they
don t help the average developer figure out how to piece together the APIs contained in these
packages. Though it s simple to find documentation on the individual APIs, getting the "big
picture" is difficult, at best. One of the most interesting, but difficult, aspects of Java today is
building Java enterprise applications using the J2EE package.
The Java Platform, Enterprise Edition 5 (Java EE 5) has two different but complementary
technologies for producing dynamic web content in the presentation tier—namely Java
Servlet and JavaServer Pages (JSP).
Java Servlet, the first of these technologies to appear, was initially described as extensions
to a web server for producing dynamic web content. JSP, on the other hand, is a newer technology
but is equally capable of generating the same dynamic content. However, the way in
which a servlet and a JSP page produce their content is fundamentally different servlets
embed content into logic, whereas JSP pages embed logic into content.