- Shopping Bag ( 0 items )
Java Server Pages allows developers to easily create dynamic, ...
Ships from: acton, MA
Usually ships in 1-2 business days
Java Server Pages allows developers to easily create dynamic, interactive web pages by embedding scripts directly into HTML and XML. These scripts make use of Java bean components. By separating presentation code from the generation of dynamic content, JSP also allows web designers to change the presentation of applications with minimal Java programming knowledge. Java Server Pages extend the functionality of web servers by performing server-side tasks such as HTML form processing, database queries, and report generation. Using Java Server Pages, developers can quickly create powerful intranet and web applications that incorporate enterprise resources such as databases, networked servers and distributed objects. JSP also offers numerous advantages over existing CGI scripting techniques, including portability, reusability, session tracking, performance, and ease of development.
Java Server Pages (JSP) is a recent extension (currently at v1.0) to the Java platform that promises to become the standard tool for intranet and web application development.
The goal of this chapter is to get all the tools installed on your machine that you'll need to develop Java web applications. We'll also go through the process of writing a simple Java web application as well.
At the end of the chapter, I've also included some optional material that explains a little about how the web itself works, and Java's role in the web.
http://java.sun.com/j2se/. You're looking for the latest version of the "Java 2 SDK, Standard Edition", disregarding any beta versions that may be available. As of this writing, the latest version is 1.3.
C:\jdk1.3, but feel free to install it wherever you want (however, substitute your custom path for
C:\jdk1.3wherever you see it in this book).
Note that in these instructions and throughout the rest of the chapter I use the Windows notation for paths. To make these into Unix paths, substitute forward slashes (/) instead of back slashes (\) and remove the drive prefix at the beginning of the path - for example,
http://jakarta.apache.org/tomcat/. Surf on over there and grab the latest version of Tomcat 4.x (as of this writing, it's Tomcat 4.0 beta 5).
C:\, which will place the files in a folder called something like
C:\jakarta-tomcat-4.0-b5. (The exact folder will depend on which version of Tomcat 4.x you downloaded; this is the correct folder for beta 5.)
To do this you need to set or modify several environment variables. We'll look at how to do this in a moment; first, let's see which variables we need to set:
JAVA_HOMEtells Tomcat where it can find the Java software development kit; you must set it to the folder where you installed this, such as:
CATALINA_HOMEneeds to point to the folder where you installed Tomcat, such as:
CLASSPATHis used to help the Java software find extra bits of program code; it contains a list of places to look, separated by semicolons (
;) on Windows or colons (
:) on Unix. We need to include a file called
servlet.jar, which can be found in Tomcat's
common\libfolder this contains various bits of useful code that we'll need in later chapters. So, if you're on Windows and have been following our recommendations so far you've set
PATHis used by your operating system to find programs you want to run; like
CLASSPATH, it consists of a list of places to look separated by semicolons (on Windows) or colons (on Unix). You'll find that
PATHis already set but you need to add the
C:\jdk1.3\binfolder to the list. For example, on Windows your
PATHmight currently be:
which would need to be changed to:
c:\jdk1.3) for the value, as shown below...
|Ch. 1||Starting Web Programming||9|
|Ch. 2||Storing Data and Performing Calculations||25|
|Ch. 3||Getting Data from the Browser||49|
|Ch. 4||Introducing JavaBeans||71|
|Ch. 5||Decisions, Decisions||91|
|Ch. 6||Introducing Tag Libraries||131|
|Ch. 7||More On Objects||143|
|Ch. 8||Utility Classes||171|
|Ch. 9||When It All Goes Wrong||207|
|Ch. 10||Writing Tag Libraries||243|
|Ch. 11||Keeping Track of Users||291|
|Ch. 12||Structuring Our Applications||313|
|Ch. 13||Behind the Scenes||345|
|Ch. 14||Accessing Files||385|
|Ch. 15||Creating Database with Java||441|
|Ch. 16||Querying Databases with Java||471|
|Ch. 17||Handling E-mail||517|
|Ch. 18||The Struts Framework||561|
|Ch. 19||Case Study: Design and Data Access||619|
|Ch. 20||Case Study: The Web Interface||681|
|App. A||JSP Syntax Reference||753|
|App. B||JSP Implicit Objects||76ä|
|App. C||XML Data Formats||787|
|App. D||Getting More Information||811|
|App. E||Support, Errata and p2p.wrox.com||823|
Posted January 14, 2003
This book is great. We had to use it at college as part of our JSP class. It starts you off at the very first level, teaching you what tools you need to get JSP up and running right off the bat. Excellent book.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.