Google
 
Google
 

Tuesday, February 19, 2008

Visual Basic Design Patterns VB 6 0 and VB NET 2002


What Are Design Patterns

Sitting at your desk in front of your workstation, you stare into space, trying to figure out how to write a new program feature. You know intuitively what must be done, what data and what objects come into play, but you have this underlying feeling that there is a more elegant and general way to write this program.

In fact, you probably don't write any code until you can build a picture in your mind of what the code does and how the pieces of the code interact. The more that you can picture this "organic whole," or gestalt, the more likely you are to feel comfortable that you have developed the best solution to the problem. If you don't grasp this whole right away, you may keep staring out the window for a time, even though the basic solution to the problem is quite obvious.

In one sense you feel that the more elegant solution will be more reusable and more maintainable, but even if you are the sole likely programmer, you feel reassured once you have designed a solution that is relatively elegant and that doesn't expose too many internal inelegancies.


Visual Basic Language Reference 1


To see if an application provides an object library

  1. From the Tools menu, choose References to display the References dialog box.

  2. The References dialog box shows all object libraries registered with the operating system. Scroll through the list for the application whose object library you want to reference. If the application isn't listed, you can use the Browse button to search for object libraries (*.olb and *.tlb) or executable files (*.exe and *.dll on Windows). References whose check boxes are checked are used by your project; those that aren't checked are not used, but can be added.

Visual Basic Language Reference 2


Welcome to the Visual Basic documentation.

Visual Basic includes many documentation tools, each designed to help you learn and use a particular aspect of the product. The documentation provided with Visual Basic includes the following:

  • Visual Basic User Interface Help

    Look here for Help on interface elements of the Visual Basic Editor, such as commands, dialog boxes, windows, and toolbars.

  • Visual Basic Conceptual Topics

    The Conceptual Help topics include information to help you understand Visual Basic programming.

  • Visual Basic How-To Topics

    Look in the How To section of Help to find useful common procedures, for example, how to use the Object Browser or how to set Visual Basic Environment options.

  • Visual Basic Language Reference

    The Language Reference is the place to find Help on Visual Basic the language: all its methods, properties, statements, functions, operators, and objects.

Visual Basic Language Reference 3

Welcome to the Visual Basic documentation.

Visual Basic includes many documentation tools, each designed to help you learn and use a particular aspect of the product. The documentation provided with Visual Basic includes the following:

  • Visual Basic User Interface Help

    Look here for Help on interface elements of the Visual Basic Editor, such as commands, dialog boxes, windows, and toolbars.

  • Visual Basic Conceptual Topics

    The Conceptual Help topics include information to help you understand Visual Basic programming.

  • Visual Basic How-To Topics

    Look in the How To section of Help to find useful common procedures, for example, how to use the Object Browser or how to set Visual Basic Environment options.

  • Visual Basic Language Reference

    The Language Reference is the place to find Help on Visual Basic the language: all its methods, properties, statements, functions, operators, and objects.

  • Visual Basic Add-In Model

    If you want to customize the Visual Basic editor, see this language reference for Help on the object model that allows you to extend the environment.

  • Microsoft Forms Reference

    Look here for Help on Userforms and controls, and how to program with them using Visual Basic.

Visual Basic Microsoft Graph Objects

The Microsoft Graph Object

The Microsoft® Graph Object (Graph) gives developers the ability to chart, graph, or plot information easily without developing code. Graph is a charting application that you use within Microsoft application and development software, including Microsoft Word, Microsoft Access, Microsoft PowerPoint®, Microsoft Visual C++™, and Microsoft Visual FoxPro™.

A map is a good learning aid and a quick reference when developing an application. After producing a map, I found that it was easy to work with the object: I just post the appropriate map on my wall for quick reference, which is a lot faster than clicking objects in a Help file one by one to discover their properties and methods.

Because Figure 1 is unreadable online, I have included it in the two most common graphics formats—encapsulated PostScript™ (.EPS) and Windows® metafiles (.WMF)—as well as a copy of my original Shapeware® Visio™ version 3.0 file (.VSD). The first two formats can be printed across multiple pages using any of the commercial graphics applications—such as Adobe™ PageMaker™, Corel® Draw, or Microsoft Publisher—or using Microsoft Excel. The original Visio file is included for those who have a copy of Visio and wish to modify the diagram easily.


Visual Basic Programming for the Absolute Beginner 2001


Introduction

Microsoft Visual Basic is a leader among high-level languages in supporting the event-driven paradigm and Rapid Application Development (RAD). More specifically, Visual Basic’s acceptance and popularity can be seen in many facets of application development such as database access, Graphical User Interface (GUI) prototyping, building distributable components, Internet scripting, desktop and client/server design, and even game development.

Because of its common commercial uses and ease of learning, Visual Basic has also become popular with higher education institutions all over the world for teaching people how to program.

While this book’s primary objective is to teach you the Visual Basic language, I will also cover some relevant computer science principals in a palatable form suitable for beginning programmers.


Windows Forms Programming in Visual Basic .NET 2004


Who Should Read This Book?

When writing this book, we had two target audiences in mind. We wanted to provide real-world WinForms coverage for both the programmer who has already programmed in .NET and for the programmer who hasn't. Toward that end, we briefly introduce core .NET topics as they come up. However, the .NET Framework itself is a large area that this book doesn't pretend to cover completely. Instead, when we think more information would be useful, we reference another work that provides the full details. In particular, we find that we've referenced Essential .NET, by Don Box, with Chris Sells, a great deal, making it a good companion to this book. In this same category, we also recommend Pragmatic ADO.NET, by Shawn Wildermuth, Advanced .NET Remoting, by Ingo Rammer, .NET Web Services, by Keith Ballinger, and Applied Microsoft .NET Framework Programming, by Jeffrey Richter. (For more details on these books, see the Bibliography.)

Two core .NET topics are of special importance to WinForms programmers, and we cover them in more detail in Appendix B: Delegates and Events and in Appendix C: Serialization Basics. The coverage of delegates and events is particularly important if you're new to .NET, although I don't recommend diving into that topic until you've got a WinForms-specific frame of reference (which is provided about one-third of the way through Chapter 1: Hello, Windows Forms).

Writing Excel Macros with VBA 2nd Ed 2002


The Book's Audience

As an introduction to programming in Excel VBA, the book is primarily addressed to two groups of readers:

• Excel users who are not programmers but who would like to be. If you fall into this category, it is probably because you have begun to appreciate the power of Excel and want to take advantage of its more advanced features or just accomplish certain tasks more easily.

• Excel users who are programmers (in virtually any language—Visual Basic, Visual Basic for Applications, BASIC, C, C++, and so on) but who are not familiar with the Excel object model. In this case, you can use Writing Excel Macros to brush up on some of the details of the VBA language and learn about the Excel object model and how to program it.


Visual Basic 6 Database How-To 1999


About This Book
Since version 3, Visual Basic has been the tool of choice for database programmers everywhere. First came DAO with version 3, RDO with version 4, and then the ability to build robust ActiveX components in version 5. With each successive version, Microsoft adds more functionality to make database programming easier for you.

Visual Basic's powerful database feature set has continued to grow with version 6. New tools and technologies like ADO, OLE-DB, and the Microsoft Data Reporter vie for your attention. What does it all mean, what can it do for you, and most importantly, how do you quickly get up to speed? That's why this book was created. Visual Basic 6 Database How-To gives an in-depth view of each major method of data access, with real-life examples with which to work. Like all books in the successful How-To series, Visual Basic 6 Database How-To emphasizes a step-by-step problem-solving approach to Visual Basic programming. Each How-To follows a consistent format that guides you through the issues and techniques involved in solving a specific problem. Each section contains the steps to solve a problem, as well as a discussion of how and why the solution works. In most cases, you can simply copy the provided code or objects into your application and be up and running immediately. All the code described in the book is available on the accompanying CD-ROM.

Visual Basic 6 Black Book 2001


Introduction
Welcome to your Visual Basic support package. Thats what this book has been designed to be: your complete VB support package. Have we reached that goal yet? Its up to you to decide. If what youre looking for is not in this edition, well work hard to make sure its in the nextI encourage your suggestions. Please feel free to write. Well put in the time to make sure this book is the most complete one available on Visual Basic, edition after edition. This is the book we want you to come back to again and again.

Ive used Visual Basic back before version 1 even came out publicly and have written many books on the program. I put Visual Basic to work for a very wide range of uses day after day; in fact, its is my favorite programming package of all, and it comes close to being my favorite program period. But Ive never written a book on Visual Basic as complete as this one and never included as many features, documented or undocumented, examples, and tips in one volume.

This book has been designed to give you the coverage you just wont find in any other book. Other books often omit not only the larger topics, like deploying your program after youve created it and creating Help files, but also the smaller ones, like covering in depth just about every control that comes with Visual Basic, including the ActiveX controlsfrom the MS chart control to flat scroll bars, from the serial port comm control to the Internet transfer control.

Visual Basic 6 Black Book 1998


Introduction

Welcome to your Visual Basic support package. That’s what this book has been designed to be: your complete VB support package. Have we reached that goal yet? It’s up to you to decide. If what you’re looking for is not in this edition, we’ll work hard to make sure it’s in the next—I encourage your suggestions. Please feel free to write. We’ll put in the time to make sure this book is the most complete one available on Visual Basic, edition after edition. This is the book we want you to come back to again and again.

I’ve used Visual Basic back before version 1 even came out publicly and have written many books on the program. I put Visual Basic to work for a very wide range of uses day after day; in fact, it’s is my favorite programming package of all, and it comes close to being my favorite program period. But I’ve never written a book on Visual Basic as complete as this one and never included as many features, documented or undocumented, examples, and tips in one volume.

This book has been designed to give you the coverage you just won’t find in any other book. Other books often omit not only the larger topics, like deploying your program after you’ve created it and creating Help files, but also the smaller ones, like covering in depth just about every control that comes with Visual Basic, including the ActiveX controls—from the MS chart control to flat scroll bars, from the serial port comm control to the Internet transfer control.

Reluctantly, I must admit that it’s impossible for one volume to be utterly comprehensive on the subject of Visual Basic (impossible because it’s not physically possible to bind a book that big yet), but we’re trying our best. It’s true that some specialty books might have more coverage on a few topics, but if you want to see more on a particular topic, write in and we’ll work seriously on adding more of that topic to the next edition.


Visual Basic 6 - The Complete Reference 1999


Introduction

MCSD Training Guide: Visual Basic 6 Exams is designed for developers with the goal of certification as a Microsoft Certified Solutions Developer (MCSD). It covers both the Designing and Implementing Distributed Applications with Microsoft Visual Basic 6.0 exam (70-175) and the Designing and Implementing Desktop Applications with Microsoft Visual Basic 6.0 exam (70-176). These exams measure your ability to design and implement distributed and desktop application solutions by using Microsoft Visual Basic version 6.0.

This book is your one-stop shop. Everything you need to know to pass the exams is in here, and Microsoft has approved it as study material. You do not have to take a class in addition to buying this book to pass the exam. However, depending on your personal study habits or learning style, you may benefit from buying this book and taking a class.

This book also can help advanced users and administrators who are not studying for the exam but are looking for a single-volume reference on Microsoft’s TCP/IP implementation.

Visual Basic 6 - Special Edition 1998


Introduction
  • Fundamental Visual Basic Programming 2
  • Working with Visual Basic Components 3
  • Creating Application Interfaces 4
  • Advanced Visual Basic Programming 4
  • Database Programming Techniques 5
  • Internet Programming 5
  • Additional References 5
  • Source Code and Programs Used in This Book 6
  • Conventions and Special Elements Used in This Book 6

Visual Basic 6 - Programming Concepts 1999


1. Analyze: Define the problem. Be sure you understand what the program should do, that is, what the output should be. Have a clear idea of what data (or input) are given and the relationship between the input and the desired output.

2. Design: Plan the solution to the problem. Find a logical sequence of precise steps that solve the problem. Such a sequence of steps is called an algorithm. Every detail, including obvious steps, shouldappear in the algorithm. In the next section, we discuss three popular methods used to develop the logic plan: flowcharts, pseudocode, and top-down charts. These tools help the programmer break a problem into a sequence of small tasks the computer can perform to solve the problem. Planning also involves using representative data to test the logic of the algorithm by hand to ensure that it is correct.

3. Choose the interface: Select the objects (text boxes, command buttons, etc.). Determine how the input will be obtained and how the output will be displayed. Then create objects to receive the input and display the output. Also, create appropriate command buttons to allow the user to control the program.

4. Code: Translate the algorithm into a programming language. Coding is the technical word for writing the program. During this stage, the program is written in Visual Basic and entered into the computer. The programmer uses the algorithm devised in Step 2 along with a knowledge of Visual Basic.

Visual Basic 2005 Jumpstart 2005


Who This Book Is For

Visual Basic 2005 Jumpstart is written for VB 6 programmers who have yet to move to Visual Basic 2005, the latest release of Microsoft Visual Basic, one of the world's most popular programming languages. With VB 2005, Microsoft has given VB 6 developers a host of reasons to upgrade now, including the return of VB 6 features omitted from earlier versions of VB.NET.

My aim is to provide you with a starting point—a jumpstart—that demonstrates how easy it is to become productive with the new language when it's paired with the Visual Studio 2005 development environment.

To get the most out of this book, you'll need a copy of Visual Studio 2005 that supports Visual Basic (see "What You Need to Use This Book"). I encourage you to work your way through the sample applications, especially those in Chapters 1, Chapters 4, and Chapters 5, as they are purposefully small and designed to show off the best of the new features in VB 2005. You'll be surprised at how easily and quickly you can build a relatively sophisticated Windows or web application. The complete source code for the book (along with any errata) is available on the O'Reilly web page for this book, http://www.oreilly.com/catalog/vbjumpstart/.


Visual Basic 2005 In A Nutshell, 3rd Edition 2006


Who This Book Is For

Just like any reference, this book will be useful to many types of readers:

  • Developers who have used previous versions of Visual Basic

  • Developers who are new to Visual Basic, but who have been developing applications in other programming languages, such as C++

  • Those who are learning VB as their first language and would like to have a definitive language reference on their shelf

Visual Basic 2005 Express Edition Starter Kit 2006


Introduction

So you want to get a proper start in programming but don’t know quite where to begin? You couldn’t have chosen a better tool to get you on the ground running than Microsoft’s new programming application, Visual Basic 2005 Express Edition. Of course, you’ll now need to learn how to use it, maximizing your education while minimizing the impact on your busy life.

That’s where this book comes in. Not only do you have a comprehensive introduction to Visual Basic Express as a language and a development tool, but you also have tips, tricks, and additional techniques that will bring you up to speed before you know it.

From installation to building your own programs, customizing existing code, debugging, securing, and deploying solutions, the next few hundred pages will be your guide to the world of Visual Basic Express.

I’ve been using the Basic programming language in many forms for over 20 years, and I freely and happily admit that this version is the easiest I’ve ever encountered. Considering that Basic as a language hasalways been one of the most easily understood, that’s saying something.

Visual Basic 2005 Database Programming 2006


Introduction

It’s a reasonably safe bet that more than 80% of Visual Basic 6.0 projects written since Microsoft released the product on June 15, 1998 involve connections to one or more relational databases. Access 1.0 introduced the Joint Engine Technology (Jet) indexed sequential access method (ISAM) database and Embedded Basic, the forerunner of Visual Basic for Applications (VBA), in 1992. Access 1.0 and 1.1 enabled rapid application development (RAD) for Jet, as well as SQL Server 4.2 and other client/server database front ends that had Open Database Connectivity (ODBC) drivers. Visual Basic 3.0 introduced databinding and the first databound grid control in 1993, which resulted in a flood of books and magazine articles devoted to VB database programming with SQL and ODBC. Visual Basic 4.0 introduced 32-bit projects but wasn’t a robust development platform. 1995’s Visual Basic 5.0 added ActiveX Data Objects (ADO) 1.0 and OLE DB. VB and VBA became the world’s most popular programming languages with an estimated three million users. By 1998 most professional VB6 developers were writing production-grade Windows front ends for client/server databases and began to adopt Microsoft Transaction Server 1.0 for three-tier, distributed data access architectures. Developers wrote billions of lines of data-intensive VB code during the following four years.

Visual Basic .NET Unleashed 2002


Visual Basic .NET Is a First-Class Language

When I attended the Microsoft authors' summit in November of 2000, key Microsoft people kept referring to Visual Basic .NET as a "first-class" language. This acknowledgment by Microsoft that there was room for improvement in the old VB was a big step. Visual Basic .NET is a first-class language.

Visual Basic .NET now includes things that have been available to C++, Java, and Delphi programmers for years. Those of us who have programmed in these other languages, yet loved VB, patiently awaited the changes that would enable us to get out of "DLL Hell" and would remove limitations that definitely exist in VB6. With the arrival of Visual Basic .NET, those limitations are gone. My job is to show you what those limitations were while showing you what is available in Visual Basic .NET. For new capabilities, I might or might not explicitly say, "You couldn't do that in VB6," but VB6 programmers will know.

Visual Basic .NET is a first-class language because it explicitly supports and contains things that are indicative of a first-class language, including inheritance, virtual methods, shared methods, event handling, structured exception handling, multithreading, and encapsulation at the namespace level. Inheritance in Visual Basic .NET means that you inherit methods and properties rather than just an interface. Event handling is implemented through delegates, special classes that allow you to write dynamic event handlers as well as being used to support forms. Shared methods—sometimes called class methods or static methods—support invoking behaviors at the metaclass level. Support also exists for multithreading, namespaces, and parameterized constructors. You will find that applications written in Visual Basic .NET are limited far more by your imagination than by the language itself and the .NET Framework


Visual Basic .NET Power Tools 2004


Introduction

THIS BOOK ACTUALLY BEGAN in Athens, Greece in 1993. Evangelos Petroutsos wrote a very interesting outline, and several sample chapters, for a book about "fascinating and sophisticated things" you could do with Visual Basic. I agreed with my publisher that his ideas had potential, but Evangelos was a first-time author. I had a track record, though, so the publisher said they'd invest in this "Power Toolkit" book if I agreed to co-author it. Even a small book represents a $50,000 gamble for a publishing house, and this was a very large book.

I merrily agreed because I thought the topics were compelling—fractals, encryption, processing graphics, animated transitions, multimedia, manipulating color palettes, recursion, and other topics that were largely ignored by other VB books. To our delight, the book became a runaway bestseller in 1995. Evidently many Visual Basic programmers were ready for a book about advanced, cutting-edge programming techniques.

In 2002, we decided to revisit this concept. Nearly a decade has passed, and we now have what amounts to a brand new Visual Basic language: VB.NET. We decided to follow the same path that we went down a decade ago: to explore aspects of VB.NET that have been largely ignored in other books, but are useful or interesting, or both.


Monday, February 18, 2008

Security For Microsoft Visual Basic NET 2003


Introduction

This book is an introduction to security for Visual Basic programmers. You’ll find it useful both as a prescriptive guide for writing secure applications and as a technical reference for how to actually implement security techniques in your own code. For example, in Chapter 1, “Encryption,” we explain what encryption is and when to use the different types of encryption, and we provide examples that show you how to actually encrypt and decrypt information.

Although there is already a wealth of information available about security, very little has been written that targets the Visual Basic programmer. In writing this book, we set out to change this. We have followed three principles that make this book better for the Visual Basic programmer than any other publication you will find on security:

  • Make it simple Many security publications are shrouded in hard- to-understand jargon and difficult-to-work-out acronyms, and they assume you already have a background in security. This book is different: we spell out every acronym, use easy-to-understand language, and explain in clear terms each security concept.

  • Clear guidance Some security books explain security techniques without telling you where or where not to use them. This book is different: we offer clear guidance on how, when, and where you should use each security technique.

  • Complete assistance Although this is an introductory-level book, it covers everything from coding techniques to designing a secure architecture to performing a security audit. Our intention was to provide an end-to-end introductory guide for producing secure applications.

Visual Basic .NET Language in a Nutshell 2001


How This Book Is Structured

VB .NET Language in a Nutshell is divided into three parts. The first part of the book, The Basics, is an introduction to the main features and concepts of Visual Basic programming. Given the newness of VB .NET, even seasoned VB professionals should find items of interest here. If you're new to VB, this part of the book is essential reading. It's divided into the following chapters:

Chapter 1
In this chapter, you'll see how Visual Basic has evolved into the VB .NET language of today and get some sense of how and why VB .NET is different from previous versions of Visual Basic.

Chapter 2
This chapter looks at the standard Visual Basic data types and how you use them. Behind the scenes, Visual Basic takes advantage of the .NET Framework's common type system, so the chapter also examines the .NET data types and the way in which VB wraps these data types.

Chapter 3
With the release of its .NET version, Visual Basic finally becomes a fully object-oriented programming language. This chapter discusses the basic concepts of object-orientated programming and shows how you implement VB's object-oriented features in your programming.

Chapter 4
This chapter surveys some of the new features of the .NET Framework that most impact the VB developer. These include namespaces, the Common Language Runtime (CLR), and assemblies.

Chapter 5
The .NET Framework Class Library replaces portions of the Win32 API, as well as many of the individual object models that VB programmers have worked with over the past five years, with a single class library. This chapter offers a very fast-paced overview of the Framework Class Library and some of its features.

Visual Basic .NET How to Program 2E


For introductory and intermediate courses on Visual Basic programming offered in departments of Computer Science, CIS, MIS, IT, Business, Engineering, and Continuing Education.

Teach Visual Basic .NET programming from the ground up! The introduction of Microsoft's .NET Framework marks the beginning of major revisions to all of Microsoft's programming languages. This book provides a comprehensive introduction to the latest version of Visual Basic—Visual Basic .NET—which features extensive updates and increased functionality. Visual Basic .NET How to Program covers introductory programming techniques as well as more advanced topics, featuring enhanced treatment of developing Web-based applications.

VBScript Language Reference 1997

Introduction

This Reference has been compiled to a CHM file by Andrew Tait atait@netc.net.au. I do not claim that I wrote this documentation, I only compiled it for convienience. This reference is Copyright © 1997 Microsoft Corporation. All rights reserved.

Why did I compile it you ask? Well all the seperate HTML files took 20 MB on my Hard Disk, even though there is only 1.37 MB of files. That it due to my cluster size of 32 KB and FAT16 file system. Don't worry if you don't understand. Compiling it saved more than 19 MB on my Hard Drive, plus make it easier to use.

Other reference are also avaliable on my home page at http://home.netc.net.au/~atait/ so check it out some time. If you need any programming done for your web site, feel free to contact me to find the best solution for you.

There are errors in here, but they are rrors in the reference itself, and not my doing. I have only added three pages to this reference, Introduction (this page), Advantages and Copyright.

This CHM file was made with the HTML Help Construction Workshop.

A great companion to this is the ActiveX Control Pad, which will assist you in VBScript and JavaScript Programming. Find it at http://www.microsoft.com/workshop/author/.


VBScript In A Nutshell 2nd Ed 2003


Why This Book?


The major source of documentation for VBScript is the Visual Basic Scripting HTML Help file, the official documentation that is included with VBScript itself. While VBScript's online help is an indispensable resource that most VBScript programmers turn to first, it has a number of limitations:

  • It offers a rather bare-bones approach to the language. There isn't a level of detail that allows one to move beyond the basics or to make the documentation useful in troubleshooting and diagnosing sources of error.

  • The examples rarely, if ever, move beyond the self-evident and obvious.

  • In a very small number of cases, it incorrectly documents a feature that turns out not to work in VBScript, but that is implemented in VBA. This leads one to suspect that the documentation was originally written for VBA and then was quickly adapted to VBScript.

  • Since one of the strengths of VBScript is that it allows VBA programmers to leverage their existing skills in learning a new technology, it is peculiar that the documentation totally disregards differences between VBA and VBScript.

VBA WRD 9 2000


Miscellaneous tasks

This topic includes Visual Basic examples for the following tasks:

  • Changing the view

  • Setting text in a header or footer

  • Setting options

  • Changing the document layout

  • Looping through paragraphs in a document

  • Customizing menus and toolbars

Changing the view

The View object includes properties and methods related to view attributes (show all, field shading, table gridlines, and so on) for a window or pane. The following example changes the view to print view.

ActiveDocument.ActiveWindow.View.Type = wdPrintView

VB.NET Syngress Developers guide 2001


Introduction

Microsoft defines namespaces as "a logical naming scheme for grouping related types." What that means to us is that all objects used in ASP.NET are grouped by type, making them easy to find and to use. Imagine the .NET namespaces as a file cabinet. You use file cabinets to group related things to make finding them easier, and to preserve your sanity. For example, you may place the deed to your house and your mortgage coupons in one folder, while college loan papers and stubs go in another. Namespaces represent exactly the same concept. Like objects are grouped together: an HTMLInputTextBox object is grouped in the same namespace as the HTMLAnchor object, because they both represent HTML-user interface controls displayed to the user. In subsequent sections we'll be looking at all the major namespaces that ASP.NET will take advantage of.

System is the root of the namespaces. Within each namespace we can find anywhere from one to several other sub-namespaces that provide programmers with the functionality needed to create and provide Web-based applications.

System.Web is a great example. Within its namespace it contains over 10 different sub-namespaces that fulfill many of the basic Web functions and then some. System.Data contains various database connectivity methods, such as communication with SQL databases and some limited Extensible Markup Language (XML) connectivity. For specialized XML connectivity we can use System.XML, which can provide everything from parsing to translating XML schemas.


VB.NET Mastering vb.net database programming 2002

A First Look at ADO.NET

  • How does ADO.NET work?
  • Using the ADO.NET object model
  • The Connection object
  • The Command object
  • The DataAdapter object
  • The DataReader object
  • The DataSet object
  • Navigating through DataSets
  • Updating Your Database by using DataSets
  • Managing concurrency
It’s time now to get into some real database programming with the .NET Framework components. In this chapter, you’ll explore the Active Data Objects (ADO).NET base classes. ADO.NET, along with the XML namespace, is a core part of Microsoft’s standard for data access and storage. As you recall from Chapter 1, “Database Access: Architectures and Technologies,”ADO.NET components can access a variety of data sources, including Access and SQL Server databases, as well as non-Microsoft databases such as Oracle. Although ADO.NET is a lot different from classic ADO, you should be able to readily transfer your knowledge to the new .NET platform. Throughout this chapter, we make comparisons to ADO 2.x objects to help you make the distinction between the two technologies.

Saturday, February 16, 2008

Programming Visual Basic for Palm OS 2002


Who Should Read This Book

This book is written for the corporate software developer who uses Microsoft Visual Basic to develop Windows applications and is interested in, or needs to develop for, the Palm. While the reader should have experience with the property-method-event model of VB programming, no familiarity with Palm products is assumed or required.

Some later chapters assume familiarity with C/C++, including COM. These chapters are intended for system-level programmers who need to go beyond the limits of VB to develop custom or shared components.

Others who will benefit from this book are software architects, middle-ware developers, and engineering managers who need to understand the strengths and limits of VB on the Palm, and how to integrate VB-based Palm applications into their corporate IT infrastructure or product offerings.

Programming Visual Basic .NET 2nd Ed 2001


About This Book

Programming Visual Basic .NET, Second Edition, is a tutorial, both on the VB.NET language and on writing .NET applications with VB.NET. If you are already proficient in a programming language, you may be able to skim a number of the early chapters, but be sure to read through Chapter 1, which provides an overview of the language and the .NET platform. If you are new to programming, you'll want to read the book as the King of Hearts instructed the White Rabbit in Alice's Adventures in Wonderland: "Begin at the beginning, and go on till you come to the end: then stop."


Programming VB .NET 2002



Preface
The purpose of this book is to provide experienced software developers with the means to quickly become productive in Microsoft's Visual Basic .NET development environment. The only assumption I make about you as a programmer is that you're comfortable with the concepts and processes of software development. This book will not teach you how to program. However, if you're currently a working Visual Basic, C++, or Java developer, this book will help you transfer your existing skills to this new environment.

This book contains eight chapters and four appendixes.
Chapter 1 starts out with three short hello, world examples that show how to enter and compile a
console app, a GUI app, and a browser app. This gives the reader immediate gratification. The chapter also provides an overview of the .NET Framework and Visual Basic .NET.

Chapter 2 examines the syntax and use of the Visual Basic .NET language. This will not teach someone how to program, but it will teach a programmer how to program in Visual Basic .NET.

Chapter 3 explains the various components of the .NET Framework and explains why the .NET Framework is a Good Thing.

Chapter 4 explains how to use the Windows Forms class library for building GUI applications.

Chapter 5 picks up where Chapter 4 left off by discussing individual controls, showing how to use the common dialog boxes available in the .NET Framework, and examining menu creation and use.

Chapter 6 explains how to use the Web Forms class library for building browser-based applications.

Chapter 7 talks about building components that provide services over the Internet and how to consume those services.

Chapter 8 explains the distributed, stateless, disconnected data model encapsulated byADO.NET.


Programming Microsoft Visual Basic 6.0 1999


Introduction

In its six versions, Visual Basic has evolved from the simplest programming language for Microsoft Windows to an exceedingly complex development environment, capable of delivering virtually anything from tiny utilities to huge n-tier client/server applications. For this reason, the job of writing a book that encompasses all the language's features has become a daunting task, and I was actually intimidated when I began to write this book. I would have preferred to write several books on specific topics, or at least this is what I thought at first.

It took me some months of hard work, but in the end I managed to put everything I wanted to write about in one big tome. I believe that from the reader's point of view this is much better than having to deal with a collection of books or one thick volume written by several authors. One big book by one author ensures a uniform approach to problems and no redundancy. Nevertheless, Programming Microsoft Visual Basic 6.0 has been such a large undertaking that I like to think of it as many books in one. The following list will help you to understand what you'll find in it.

A survey of the new Visual Basic 6 features Visual Basic 6 includes many new features, especially in the database and Internet areas. Among these are ADO, DHTML applications, and WebClasses, just to mention the outstanding ones. I have explored these new features and shown you how you can take advantage of them to create the next generation of your applications. But at the same time, I've noted some of their rough edges, so you won't be lost when you find that something doesn't work as expected. This is one of the advantages of a book that isn't rushed to the market as soon as the product is released.

A demystifying tutorial on object-oriented programming You've been able to build classes using Visual Basic since version 4, yet a relatively small number of developers actively use objects in their applications. This isn't surprising, after all, since most of the available OOP code examples are "toy classes" that deal with dogs, fleas, and other animals. This hardly stimulates the imagination of programmers who must deal with invoices, products, customers, and orders. You won't find the source code for a complete object-oriented invoicing application in this book, but you'll surely learn a lot about practical uses of classes in Chapters 6, 7, and 9 or by browsing the 100 classes on the companion CD, some of which can be immediately reused in your applications. And in Chapters 16 through 20, you'll see how you can leverage your OOP skills to create ActiveX controls, local and remote ActiveX components, and exotic variations such as components for ADO, RDS, and ASP.


Programming Microsoft Visual Basic 2005 - The Language


Becoming a Better Developer

The bottom line is: developers don't need yet another reference manual. Instead—better, in addition to a reference—they need to understand how the old and the new features can be used to create more efficient, robust, reusable, and secure code. In the programming world, you can often achieve the same result with two or more equivalent techniques, but each one has its specific pros and cons, and often selecting the right approach can have far-reaching consequences on the end result. You need more than a mere reference book to gain the knowledge needed to detect these subtle differences.

A common misunderstanding in the programming community is that all you need to write great applications is familiarity with the .NET Framework and related technologies, such as Windows Forms and ASP.NET. Granted, you do need to learn these technologies to create real-world programs, but that familiarity isn't a surrogate for in-depth knowledge of low-level mechanisms that enable you to reduce memory and resource consumption, adopt effective optimization techniques, or leverage inheritance to write more concise and reusable code. I have seen too many applications that have a great user interface, yet perform very slowly and aren't structured in an orderly manner. Maintaining and evolving these applications are nightmares and cost much more in time and money than if they had been written with a solid understanding of the .NET Framework basics in mind.


Programming Dist Applications with COM and MS VB6 1998


The Purpose of this Book

I believe that COM is the most important thing that a Windows programmer can learn. Whether you're creating a desktop application that relies on ActiveX controls or an MTS application that runs business objects in an N-tier architecture, COM ties it all together. Whatever programming language or languages you're using, understanding COM is a prerequisite. However, learning about COM isn't easy. Just ask anybody who's taken the time to really get up to speed.

The creators of COM claim that they made it as simple as possible and no simpler. For a programmer with an IQ of 184 and a ponytail who spends 14 hours a day writing software, COM might seem simple. To the rest of us, COM looks like several challenging high-level concepts and thousands of grungy details. People who learned COM using C++ in the early days speak of the six months of fog they walked through in search of the light. Visual Basic has whittled down the required details from thousands to merely hundreds, but as you read through this book, you'll find that every time you peel back another layer, another daunting level of complexity appears.

The early days of COM are now fondly remembered as the days of pain and suffering. The brave developers who became productive in COM between 1993 and 1995 had to hack their way to productivity by studying the few available resources. Only the most hardcore C++ programmers became COM-literate by reading and rereading the COM Specification and Kraig Brockschmidt's Inside OLE. Today several development tools and frameworks enable you to benefit from COM without having to ride the intense learning curve that was required only a few years ago.

A thriving community of C++ programmers now eats, breathes, and sleeps the ways of COM. Some C++ programmers write COM code by hand, while others use a productivity framework such as the Active Template Library. You can find excellent books such as Essential COM by Don Box, and Inside COM by Dale Rogerson, which explain the critical aspects of COM that you need to understand to be productive.


Professional Visual Studio 2005 Team System


Introduction

In June of 1999, Microsoft started to reevaluate how Visual Studio was being used as part of a software development process. Microsoft's Developer Division sustained the developer community at large for years, but did not adequately address all of the challenges of software development within a team environment. For example, what Microsoft tools were out there for architects before Team System? There really wasn't that much—the most notable tool is Microsoft Visio, which is used to design UML diagrams. There are also some other lesser known design tools in Visio. However, there isn't any solid twoway integration between Visio diagrams and code within Visual Studio. Another problem relates to the tools themselves. To effectively set up a software development shop, you have to purchase several third-party tools (or use open-source tools) to handle tasks such as version control and team communications. A mishmash of tools is even more difficult to integrate.

Here is a common scenario: You are compiling a list of tasks or requirements to send out to your team using products such as Microsoft Excel, Word, or Project. You then have to be able to communicate these tasks to the rest of your team and respond when they have completed the task or the status changes. To be able to achieve this, you have to do a lot of cutting and pasting. On top of that, the process is very deliberate—there is no automation or shortcuts. You also have to handle a lot of your communication by e-mail. The problem with e-mail is that your team members can lose messages; there may be a server outage that may prevent your messages from coming through, and so forth.


Peer-To-Peer With VB NET 2003


About This Book

This book is designed for experienced programmers who are familiar with the .NET platform and the VB .NET language and want to extend their skills to peer-to-peer programming. It doesn't assume any knowledge of peer-to-peer concepts, or of the distributed technologies that you can use to build a peer-to-peer solution (such as .NET networking or Remoting).

What This Book Teaches You

This book provides the following information:

  • A detailed description of the .NET technologies that can be used for peer-to-peer programming, including Remoting, networking, web services, and encryption.

  • A thorough explanation of peer-to-peer conceptions such as peer discovery, communication, and the role of a central lookup or coordination server.

  • Examples of common peer-to-peer applications such as chat servers, file-sharing services, and distributed work managers.

  • An explanation of some third-party tools that can help simplify peer-to-peer programming in .NET, such as Groove and the Intel Peer-to-Peer Accelerator Kit.

OOP with Microsoft Visual Basic .NET and Microsoft Visual C Sharp Step By Step 2002


Introduction
Microsoft Visual Basic developers have long clamored for complete objectoriented language support. Microsoft Visual Basic .NET supports all the features of an objectoriented language. In addition, the entire Microsoft .NET Framework, which includes the development support for Microsoft Windows applications, Web applications, Web services, graphics, and data access, is designed according to object-oriented principles. Developers who have a firm grasp of object-oriented principles will be the strongest .NET developers.

Also new to developers is C#, a C-based language that gives developers a language choice for developing with the .NET Framework. Some C, Java, and C++ development will move to C# to take advantage of .NET’s features. Visual Basic programmers looking to learn a C language might also move to C#. Visual Basic .NET and C# both support object-oriented development with the .NET Framework. No matter what language you choose for development, being able to read code in either language will double your access to Microsoft Visual Studio documentation, .NET books, magazine articles, and other developer resources.

Object-Oriented Programming with Visual Basic.NET 2003


About This Book

This book primarily covers the topic of building objects. It discusses how they are designed, why they are designed that way, and how the design fits in with .NET. Here is a brief overview of what lies ahead.

Chapter 1, Introduction, is a high-level view of object-oriented programming and the key concepts of the .NET Framework. This chapter establishes key object-oriented terminology and shows how it applies to .NET.

Chapter 2, Object Fundamentals, discusses objects and the .NET world they live in. It includes discussions on compiling objects, namespaces, application domains, assemblies, intermediate language, and the .NET class library.

Chapter 3, Class Anatomy, shows how to build classes. Topics include member variables, methods, properties, access modifiers, and the use of access modifiers in class designs. The chapter also discusses passing parameters, the difference between reference types and value types, creating and destroying objects, the .NET garbage collector, events, and delegates.

Chapter 4, Object-Orientation, focuses on object-oriented programming (OOP). Topics include specialization and generalization, inheritance, and containment. The chapter also discusses polymorphism: substitution, method overloading and overriding, and shadowing. You will learn about using polymorphism, abstract base classes, and the Open-Closed Principle, which allows you to write flexible object hierarchies. Discussions of proper inheritance and the Liskov Substitution Principle are also included. The chapter ends with an in-depth look at interface-based programming and a few of the major interfaces you need to learn to make robust .NET objects.


Network programming .NET with C Sharp and VB.NET 2004



Who should read this book?
This book is aimed at professional developers with some previous programming experience. Basic knowledge of either C# or VB.NET is an advantage, but not essential. This is not a beginners guide to .NET, and as such it is assumed that you already know basic programming constructs such as if statements and loops.

No previous experience with network programming is assumed, so even complete newcomers will find this book comprehensive enough cover all the basics. Seasoned programmers may skip the first chapter, and readers will quickly find the pace fast enough to keep even the most expert developers glued to the pages.


Friday, February 15, 2008

C Sharp and VB.NET Conversion Pocket Reference 2002


If you are anything like me, the following is a common scenario: You are writing some code not in the language you traditionally use. Although you know a needed command in your language of choice, the keyword in the language you are using is not even remotely similar, and you can't even think of a word to type in the help file to try to get it. You want to be able to flip through a short book that has your keyword in it, along with the equivalent way of coding it in the new language you are using. This book attempts to fill that need.

This book—as well as my recognition of the need for it—grew out of my own experience. I was teaching courses on VB.NET exclusively. Then one day, I was asked to teach a C# course. It was in front of about 25 C# students that I figured out, the hard way, that knowing VB.NET does not mean you automatically know C# (and I even knew C++).

Microsoft has advertised that the .NET runtime is language agnostic, and that C# and VB.NET are so close that switching between the two is really nothing more than choosing between semicolons and Dims. That is true to a certain extent. However, during that week in front of the firing squad, I discovered that there were a lot of differences between the two, some really obvious, and some more subtle.


Developing XML Web Services and Server Components with VB NET & Visual C Sharp NET 2003


In this chapter, you will learn the fundamentals of the Microsoft .NET Framework, which is the infrastructure for developing highly distributed applications for the Internet. In addition, you will look at the role of the common language runtime in the .NET Framework, differentiate between managed and unmanaged program execution, and use assemblies in application deployment and configuration. You will also learn how the .NET Framework provides a highly secure and fault-tolerant execution environment. Finally, you will learn to use the tools that the .NET Framework provides for creating, deploying, and managing applications.


Distributed Applications with Microsoft Visual Basic 6.0 MS


MSF is a suite of models, principles, and guides for building and deploying software-a collection of best practices used by the Microsoft product groups and Microsoft Consulting Services. MSF helps you successfully deploy technologies to streamline business processes. Specifically, MSF helps you:

  • Identify critical risks.
  • Understand key interdependencies.
  • Speed up development cycles.
  • Lower the cost of owning technology.
  • Improve execution of planned events.
  • Improve reaction to unplanned events.
  • Create scalable, reliable technology solutions.
  • Improve core information technology competencies.

eMbedded Visual Basic Windows CE and Pocket PC Mobile Applications 2002


Today, PDAs (personal digital assistants) are selling in large quantities. Pagers now have 386-processors, megabytes of memory, and power to run applications. Mobile phones have full GUI interfaces and can do far more than simply place a call. Technology, as always, is pushing for smaller and faster, and we're now in the age of mobile computing.

One major operating system for mobile computing is Microsoft's Windows CE, used on the popular PocketPC devices. Windows CE offers the look and feel of the desktop Windows environment and uses a robust set of programming interfaces from the desktop as well.

With the large numbers of these devices sold each month and the astounding number of Visual Basic developers out there, I was quite surprised when I began mobile application development with the limited amount of resources available on VB development for Windows CE.


Learning Visual Basic .NET 2003


Long, long ago, and far, far away, in a little-known universe of primitive computing, there was a language called Basic, which stood for Beginner's All-purpose Symbolic Instruction Code. Basic was designed to be as simple and accessible as possible for those unfamiliar with programming.

In 1991 Microsoft unveiled Visual Basic and changed the way graphical user interfaces were written. Visual Basic can lay claim to being one of the most popular programming languages ever invented.

Visual Basic .NET (VB.NET) is a reengineering of this venerable language, which departs in significant ways from earlier versions of Visual Basic. In fact, some early adopters of VB.NET started calling it VB.NOT. VB.NET has evolved into a full-fledged object-oriented commercial software development package. Yet VB.NET also retains some of the inherent simplicity of its predecessors.


Managing Windows with VBScript and WMI 2004


In the past few years, scripting has become increasingly popular with Windows administrators. Visual Basic, Scripting Edition—commonly known as VBScript—has become especially popular, due to its ease of use and incredible flexibility. Unfortunately, most books on scripting seemed to be focused toward developers, or at least toward Windows administrators with a strong software development background. The result is that most administrators think that scripting is too complex for them, which simply isn't true. In this book, I'll introduce you to scripting from a purely administrative standpoint, starting with this chapter, where I'll explain exactly what I mean by "scripting," and how it all fits into Windows administration.


Mastering Visual Basic .NET 2002


Welcome to .NET and Visual Basic .NET. As you already know, .NET is a name for a new strategy: a blueprint for building applications for the next decade. It’s actually even more than that. It’s Microsoft’s commitment to remain at the top of a rapidly changing world and give us the tools to address the needs of tomorrow’s computing. Visual Basic .NET is a language for creating .NET applications, like many others. It also happens that Visual Basic is the easiest to learn, most productive language (but you already know that).

Visual Basic .NET is released shortly after the tenth anniversary of the first version of VB. The original language that changed the landscape of computing has lasted for 10 years and has enabled more programmers to write Windows application than any other language. Programmers who invested in Visual Basic 10 years ago are in demand today. In the world of computing, however, things change very fast, including languages. At some point, they either die, or they evolve into something new. Visual Basic was a language designed primarily for developing Windows applications. It was a simple language, because it managed to hide many of the low-level details of the operating system. Those who wanted to do more with Visual Basic had to resort to Windows API. In a way, earlier versions of Visual Basic were ‘sandboxed’ to protect developers from scary details.


MCAD MCSD Visual Basic .net XML Web Services And Server Components Study Guide 2003


Microsoft Certified Application Developer (MCAD) and Microsoft Certified Solution Developer (MCSD) tracks for Visual Studio .NET are the premier certifications for programming professionals. Covering the core technologies around which Microsoft's future will be built, these programs are powerful credentials for career advancement.

This book has been developed to give you the critical skills and knowledge you need to prepare for Developing XML Web Services and Server Components with Microsoft Visual Basic .NET and the Microsoft .NET Framework (exam 70-310).


Microsoft Excel VBA Programming for the Absolute Beginner 2002


Visual Basic for Applications (VBA for short) is a programming environment designed to work with Microsoft’s Office applications (Excel, Word, Access, etc.). Components in each application (for example, worksheets or documents) are exposed as objects and made available to the programmer to use and manipulate to a desired end. Anything you can do through normal use of the Office applications can also be automated through programming.

You can also extend the abilities of the application through the use of additional reusable objects provided for the programmer. These reusable objects are referred to as ActiveX controls, and I will demonstrate their use throughout this book. ActiveX controls are pre-built, reusable programming components that you can add to your own programming projects. Common examples include text boxes, buttons, labels, and image controls. They are very useful to program developers because they are reusable and serve to handle common programming tasks. Because ActiveX controls are reusable they only have to be developed once, thus saving valuable time. VBA includes several common ActiveX controls for use in Office projects. You can also import ActiveX controls from third party vendors, though licensing and copyrights may restrict their use in your VBA project.


Microsoft Visual Basic 2005 Express Edition - Build a Program Now


This book’s quick-start, project-based approach makes building new programming skills fun and fast!

Build your own Web browser, desktop weather station, or other cool application—without any programming experience! Featuring learn-by-doing projects and plenty of visual examples, this hands-on book is your quick start to creating applications for Microsoft Windows.


Have fun as you discover how to:
•Design a rich user interface with easy-to-use tools
•“Drag and drop” text boxes, buttons, and other controls into your application
•Add database and reporting capabilities
•Exploit features that reduce the amount of code you write
•Find and fix any bugs
•Roll-out and share your application

CD Includes:
•Visual Basic 2005 Express Edition
•Microsoft SQL Server 2005 Express Edition

Microsoft Visual Basic 2005 Step By Step 2006


Visual Basic 2005 is a development tool that you can use to build applications that perform useful work and look great within a variety of settings. Using Visual Basic 2005, you can create applications for the Windows operating system, the Web, hand-held devices, and a host of other environments and settings. The most important advantage of Visual Basic is that it has been designed to increase productivity in your daily development work—especially if you need to use information in databases or create solutions for the Internet—but an important additional benefit is that once you become comfortable with the development environment in Microsoft Visual Studio 2005, you can use the same tools to write programs for Microsoft Visual C++ 2005, Microsoft Visual C# 2005, Microsoft Visual J# 2005, and other third-party tools and compilers.


MS Office 2k Visual Basic for Applications Fundamentals


This book is designed for Office users who are learning to program with the Visual Basic language and for programmers who have experience with Visual Basic programming but who want to understand the services and objects provided by Office in order to integrate Office with, for example, a larger software solution. This book is also designed for the experienced Office developer who needs a reference to the new programming functionality that Office now provides, including the new COM add-in and event support.

To find your best starting point in this book (and get the information you need to build your custom Visual Basic programs), consult the section entitled "The Fundamentals Roadmap" towards the beginning of Chapter 1. The Fundamentals Roadmap diagram will give you a quick look at the elements in the user interface or the content in a document that you might want to manipulate through Visual Basic code. The diagram will direct you to the chapter that contains the descriptions and samples you'll need to manipulate elements of the user interface, documents, and content. Chapter 1 also contains a description of this book's six parts, along with a list of sample scenarios to help you find the information you need.


Tuesday, February 12, 2008

Effective XML 50 Specific Ways to Improve Your XML 2003


As I stated in the preface, this is neither an introductory book nor an XML tutorial. I assume that you're familiar with the basic structure of an XML document as elements that contain text, that you know how to ask a parser to read an XML document in your language of choice, that you can attach a stylesheet to a document as necessary, and so forth.

However, I have noticed over the last few years that certain words and phrases have taken on a diverse set of meanings and are often used inconsistently. Sometimes this just confuses people, but occasionally it has led to serious process failures. Some of this has been caused by authors and trainers (embarrassingly, sometimes including the author of this book) who weren't sufficiently careful with their use of words, such as element and tag. However, some of the confusion rests with the XML working groups at the W3C who are often not consistent with each other or even within the same specification. Before we proceed with the detailed items, it is worth taking the time to define our terms carefully, making sure we agree about which words mean what as well as recognize those areas where there are genuine disagreements about the meanings of common technical terms.


XML 1.1 Bible, 3rd Edition


XML stands for Extensible Markup Language (often miscapitalized as eXtensible Markup Language to justify the acronym). XML is a set of rules for defining semantic tags that break a document into parts and identify the different parts of the document. It is a meta-markup language that defines a syntax in which other domain-specific markup languages can be written.


XML in a Nutshell, 3rd Edition


XML, the Extensible Markup Language, is a W3C-endorsed standard for document markup. It defines a generic syntax used to mark up data with simple, human-readable tags. It provides a standard format for computer documents that is flexible enough to be customized for domains as diverse as web sites, electronic data interchange, vector graphics, genealogy, real estate listings, object serialization, remote procedure calls, voice mail systems, and more.

You can write your own programs that interact with, massage, and manipulate the data in XML documents. If you do, you'll have access to a wide range of free libraries in a variety of languages that can read and write XML so that you can focus on the unique needs of your program. Or you can use off-the-shelf software, such as web browsers and text editors, to work with XML documents. Some tools are able to work with any XML document. Others are customized to support a particular XML application in a particular domain, such as vector graphics, and may not be of much use outside that domain. But the same underlying syntax is used in all cases, even if it's deliberately hidden by the more user-friendly tools or restricted to a single application.


XML Hacks


Just because you can find XML in any nook and cranny you find software these days doesn't mean that everyone is an expert on the subject. That's why the hacks in this chapter were written: they are for readers who are just getting up to speed with XML. If that's you, read on; if that's not you, you can skip ahead to Chapter 2.

These hacks introduce you to the basics of XML: what an ordinary XML document looks like [Hack #1], how to display an XML document in a variety of browsers [Hack #2], how to style an XML document with CSS [Hack #3], how to use character and entity references [Hack #4], how to check an XML document for errors, both online [Hack #8] and on a command line [Hack #9], and how to run Java programs that process XML [Hack #10] .


Building ASP.NET Server Controls


With the explosion of the Internet in the mid-1990s, web development tools evolved as a combination of HTML and a scripting language such as ASP or Perl to generate dynamic output. With the advent of Microsoft's .NET Framework, ASP.NET turned web development on its head by combining a design-time interface similar to Visual Basic with an HTML and JavaScript output that requires nothing more than a web browser for rendering.

At the core of ASP.NET is server control technology. From the Page class to the Label control, all objects in ASP.NET are server controls. Server controls combine server-side execution in a well-defined life cycle with browser-friendly rendering that includes down-level browsers and a plethora of mobile clients. Regardless of the target output, server controls behave in a similar manner. Understanding this technology and how to leverage it in your own development efforts is the subject of this book.


ASP .NET 2 Beta Preview


Simply put, ASP.NET 2.0 is an amazing release! When ASP.NET 1.0 was first introduced in 2000, many considered it a revolutionary leap forward in the area of Web application development. I believe ASP.NET 2.0 is just as exciting and revolutionary. Although the foundation of ASP.NET was laid with the release of ASP.NET 1.0, ASP.NET 2.0 builds upon this foundation by focusing on the area of developer productivity

ASP.NET 2.0 brings with it a staggering number of new technologies that have been built into the ASP.NET framework. After reading this book, you will see just how busy the ASP.NET team has been in the last few years. The number of classes inside ASP.NET has more than doubled, and this release contains more than 40 new server controls

This book covers these new built-in technologies; it not only introduces new topics, it also shows youexamples of these new technologies in action. So sit back, pull up that keyboard, and let’s have some fun!

Monday, February 11, 2008

portability java language 1998



Introduction

The Portability submission represents a significant change to CORBA. It completely redefines how servers are written in CORBA and in some respects the way clients may interact with those servers. This submission attempts to be true to the spirit of the Portability submission, while trying to maintain as much compatibility as possible with the existing mapping. In some cases, such as the existing server-side mapping, we were forced to deprecate the existing model because of incompatibilities with the Portability submission. In other cases, compatible changes to the mapping were made to support an existing behavior as closely as possible. At all times, the user’s point-ofview was considered and much thought was given to usability and performance issues. The final result is a significant step forward in the types of application which can be built with CORBA using the Java language.

Practical Java Message Service



Java message service (JMS) allows message queue vendors to expose their features and increase their market size while reducing the consumer’s risk of being tied to a specific vendor. It provides functionality for all types of message systems. Sun Microsystems calls it a strategic part of the Java 2 Enterprise EditionNovell,Sybase, and others makes it even more compelling for software professionals to master this key technology. This book systematically explains JMS to an audience of software professionals who are not only interested in the theory but in real-world, practical ways of using this powerful API to create distributed, message-based, and vendor independent applications for the J2EE platform. Included in this book are techniques for using JMS with EJB 1.1 and 2.0 and with JSP via custom tags. Also included are techniques for presenting a personalized JMS protocol (similar to HTTP) and a homegrown space implementation (similar to JavaSpaces). (J2EE). Industry support from IBM, Oracle,



Presenting Java Beans 2000


Michael Morrison is a technical writer, software developer, and avid skateboarder living in Nashville, Tennessee with his immortal beloved, Mahsheed. Michael is a contributing author to Teach Yourself Java in 21 Days, Professional Reference Edition and Late Night Visual J++, as well as the lead author of Java Unleashed, Second Edition. If you're ever in the Nashville area, there's a good chance you can catch Michael skateboarding at XXX Sports. Otherwise, you can reach him via e-mail at mmorrison@thetribe.com, or on the Web at www.thetribe.com.


Professional Eclipse 3 for Java Developers 2006


The first version of Eclipse was released in November 2001. Eclipse was announced by IBM as a $40 million donation to the Open Source community. The first reactions to this gift, however, were mixed. While many Java programmers hailed the release of Eclipse enthusiastically (when would one not be enthusiastic about a $40 million present?), Sun Microsystems was initially less than amused.

In the meantime, Eclipse has taken the Java world (and not only the Java world) by storm, despite the fact that Sun Microsystems is still not onboard. Eclipse is now completely managed by eclipse.org, an independent, nonprofit organization in which, however, IBM plays a major role. Despite the fact that the membership fee is quite hefty ($250.00 per year) and commitment is asked in the form of staff members working actively toward the development of Eclipse, the membership circle is not at all small: the Eclipse consortium has about 150 member companies, and people from Ericsson, Genuitec LLC, IBM, Hewlett Packard, Intel, MontaVista Software, QNX Software Systems Ltd., SAP AG, SAS, Serena Software, and the University of Washington belong to the board (Microsoft, you guessed it, is not a member).


Professional Java Development With The Spring Framework (2005)



The Spring Framework is a major open source application development framework that makes Java/J2EE development easier and more productive.

Spring offers services that you can use in a wide range of environments, from applets and standalone clients through web applications running in a simple servlet engine to complex enterprise applications running in a full-blown J2EE application server. Spring enables a POJO programming model that decouples your code from its environment, protecting your investment in the face of change. Spring works on JDK 1.3 and later, taking advantage of JDK 1.4 and 1.5 features if available. Spring's J2EE services run on J2EE 1.2 and later.

This book will show you how you can use all the major parts of Spring to help you develop successful applications. You'll learn not just what Spring does, but why. You will gain insight into best practices when using the framework, and you will see a complete sample application..



Professional Java, JDK 5 Ed 2005

Professional Java, JDK 5 Edition builds upon Ivor Horton’s Beginning Java 2, JDK 5 Edition by Ivor Horton to provide the reader with an understanding of how professionals use Java to develop software solutions. It starts with a discussion of the tools and techniques of the Java developer, continues with a discussion of the more sophisticated and nuanced parts of the Java SDK, and concludes with several examples of building real Java solutions using Java APIs and open source tools. Professional Java, JDK 5 Edition leaves the reader with a well-rounded survey of the professional Java development landscape, without losing focus in exhaustive coverage of individual APIs. This book is the bridge between Java language texts, methodology books, and specialized Java API books. For example, once you have mastered the basics of the Java language, you will invariably encounter a problem, like building a database-driven Web site, which requires you to use a collection of technologies like JSP, and tools like Hibernate; this book provides a concrete solution that integrates both of them. Figure Intro-1 provides a context to this book’s coverage in relation to other Java books. As you start with the beginning Java books, you would use this book as a solution primer to introduce you to more in-depth books on a particular subject, such as patterns, Web services, or JDBC.


Professional JavaScript For Web Developers (2005)


Although once supported by Netscape Enterprise Server and Active Server Pages (ASP) on the server, JavaScript is primarily a client-side scripting language for use in Web browsers. Its main focus today is to help developers interact with Web pages and the Web browser window itself.

JavaScript is very loosely based on Java, an object-oriented programming language popularized for use on the Web by way of embedded applets. Although JavaScript has a similar syntax and programming methodology, it is not a “light” version of Java. Instead, JavaScript is its own language, finding its home in Web browsers around the world and enabling enhanced user interaction on Web sites and Web applications alike.

In this book, JavaScript is covered from its very beginning in the earliest Netscape browsers to the present-day incarnations flush with support for XML and Web Services. You learn how to extend the language to suit specific needs and how to create seamless client-server communication without intermediaries such as Java or hidden frames. In short, you learn how to apply JavaScript solutions to business problems faced by Web developers everywhere.

Programming Java 2 Micro Edition for Symbian OS 2004


In order to understand how Java 2 Micro Edition (J2ME) lies within the wider Java landscape it is best to explore the overall Java architecture. J2ME has been developed primarily as a technology for the execution of applications on constrained devices. In this case, constrained devices are mobile phones, PDAs, TV set-top boxes, in-vehicle telemetry, residential gateways and other embedded devices.

J2ME as a whole can be described as the technology that caters for all these devices. Given that many of them have limited resources, it would be imprudent to expect all of these devices to be able to deliver all of the functionality of the few. The Java community therefore decided that these devices should be grouped to best reflect their purpose and capabilities. This would provide a lowest common denominator for each device group and arrange them into configurations. To further differentiate these devices and to accommodate vertical markets within each configuration, profiles were created, refining the Java APIs for each device type.

Programming Spiders Bots and Aggregators in Java 2002


A tremendous amount of information is available through the Internet: today’s news, the location of an expected package, the score of last night’s game, or the current stock price of your company. Open your favorite browser, and all of this information is only a mouse click away. Nearly any piece of current information can be found online; you have only to discover it.

Most of the information content of the Internet is both produced and consumed by human users. As a result, web pages are generally structured to be inviting to human visitors. But is this the only use for the Web? Are human users the only visitors a website is likely to accommodate?

Actually, a whole new class of web user is developing. These users are computer programs that have the ability to access the Web in much the same way as a human user with a browser does. There are many names for these kinds of programs, and these names reflect many of the specialized tasks assigned to them. Spiders, bots, aggregators, agents, and intelligent agents are all common terms for web-savvy computer programs. As you read through this book, we will examine how to create each of these Internet programs. We will examine the differences between them as well as see what the benefits for each are. Figure I.1 shows the hierarchy of these programs.


QuickTime for Java A Developers Notebook 2005


Brett McLaughlin deserves huge thanks for getting this book to you. Not only is he the creator of the Developer's Notebook series and the editor of this book, but he also saw that QuickTime for Java was a topic whose need for practical know-how (to navigate the media jargon, obtuse concepts, and teeming "gotchas") was well-suited for this series. Chuck Toporek at O'Reilly was also very helpful in getting people excited about the book. And, of course, I wouldn't even be writing for O'Reilly if I hadn't bumped into Daniel Steinberg at the Mac OS X conference a few years ago, which ultimately led to our working together to edit the ONJava and java.net web sites.

The members of the quicktime-java and quicktime-api mailing lists, and the OpenQTJ project at java.net, have also been extremely helpful in working through problematic material and passing along those nuggets of knowledge that you're somehow "just supposed to know." In particular, the material in Chapter 6 about working around the incomplete state of video capture came in many ways from bits of discussion here and there saying, "you can get it to work by passing in your own GWorld." After I posted an early version of this book's "motion detector" example, some quicktime-java members developed it further into a more general-purpose capture preview. Tech reviewers Rolf Howarth, Anthony "aNt" Rogers, Dmitry Markman, and Sean Gilligan have also been generous with their time, attention, and knowledge, and have made this a far better book than it would have been without them.


Servlets and JavaServer Pages The J2EE Technology Web Tier 2004


Before you start developing with Servlets and JavaServer Pages, you need to understand two very important things: Why is using the technology desirable, and what is needed in order to use the technology? This chapter answers these two questions, and in the process provides an introduction to the entire book. We start with an introduction to traditional Web development. The discussion describes why Servlets and JSP were initially created and why the technologies are currently popular. The end of the discussion segues to the software needed in order to run the book's examples.

It is preferred that you follow the instructions in this chapter to ensure your coding environment most closely matches the one all of the code examples of this book have been tested against. If you are using an already established Servlet/JSP environment, make sure it has support for JavaServer Pages 2.0, Servlets 2.4, and the Java 2 Standard Edition 1.4. Examples in this book require these technologies and some features covered are not backwards-compatible.


Swing Hacks - Tips


Swing is a powerful toolkit, filled to the brim with complicated components, extension APIs, and large Model-View-Controller (MVC) systems. It can be quite daunting. The current edition of O'Reilly's Java Swing book now stretches over 1,200 pages! Swing now extends from the simplest JButton to the full Look and Feel API. I am still amazed at the power and flexibility of Swing, and quite aware of its complexity. Some of the more esoteric parts can take years to master. However, you don't need to go straight into the JTRee or Look and Feel APIs just to do something cool. There are still a lot of fun things waiting in the standard components we don't always think about.

This chapter covers some of the basic components that every Swing developer uses: buttons, labels, menus, and the occasional scroll pane. From this base you will learn how to create image buttons, put watermarks into your text areas, and even build a new component or two. These are the components that seem boring, but with a little imagination, they can do a whole lot, and the techniques here lay the foundation for even more exciting hacks later in the book.


The enterprise java beans


The appendix contains state and sequence diagrams for all the bean types discussed in this book: container-managed and bean-managed entity beans, and stateless and stateful session beans. Although standard UML is used in these diagrams, some extensions were required to model EJB runtime characteristics. In the state diagrams, for example, actions of the client and container are shown in the standard format; callback methods and class instantiation operations are shown as part of the transition event. The separation of client and container requires this simple extension.

In the sequence diagrams, container−provided classes such as the container itself, EJB object, and EJB home are shown as separate classes but are also boxed together. Messages sent from classes in the container system box are considered to be sent from the container system as a whole, not necessarily the specific container−provided class. This generalization is necessary because the container's interaction with the bean is characterized by these classes but will be different from one vendor's implementation to the next. The exact source of the message is immaterial, as long as you realize that the container system sent it.


The Java Programming Language, 4th Edition (2005)


In the Java programming language, programs are built from classes. From a class definition, you can create any number of objects that are known as instances of that class. Think of a class as a factory with blueprints and instructions to build gadgetsobjects are the gadgets the factory makes.

A class contains members, the primary kinds being fields and methods. Fields are data variables belonging either to the class itself or to objects of the class; they make up the state of the object or class. Methods are collections of statements that operate on the fields to manipulate the state. Statements define the behavior of the classes: they can assign values to fields and other variables, evaluate arithmetic expressions, invoke methods, and control the flow of execution.


Using and Understanding Java Data Objects 2003


Java data objects (JDO) specifies a transparent persistence service for Java objects. The specification describes a general framework for storing and retrieving the persistent state of Java objects. The JSR-12 expert group defined JDO using the Java Community Process. JDO includes a specification, a reference implementation, and a technology compatibility kit (TCK). All three can be downloaded from the Java Community Process Web site (http://www.jcp.org/jsr/detail/12.jsp). A number of vendors have created implementations of JDO and provide versions of their products that you can download from the Web. URLs to some of these vendors are found near the end of this introduction.

Java programmers use tools to make their projects successful. Most applications and server-side components involve moving data between objects in memory and persistent storage. JDO promises to change the way that Java programmers store and retrieve object state. JDO simplifies the application's code, increases the application's portability, and helps to separate concerns in the application's design. Compared to existing alternatives, JDO makes persistence easier to understand, easier to model, and easier to code.


Using Java 2 Standard Ed 2001


Welcome to the amazing and dynamic world of Java! If you are brand new to Java, get ready for a solid introduction to the hottest programming technology in the industry. Java is an extremely rich language that is relatively simple and easy to learn, especially when compared to some of the languages from which its inventors drew. Java gives you unprecedented support for even the most complex of tasks through its powerful API.

What is Java? Java is a revolutionary programming language that was introduced by Sun Microsystems in June 1995. Since then, hundreds of thousands of programmers have picked up books just like this one and have realized just how powerful the language is.

Java is an object-oriented programming language, which means that programmers using Java can develop complex, yet maintainable, programs more easily than programmers attempting to do the same with procedural languages. In addition, Java has built-in support for threads, networking, and a variety of other tools that allow you to focus more on the true requirements of your programs and less on the low-level infrastructure that you need.


using uml for modeling a distributed java application 1997



The Uni ed Modeling Language has been proposed by Grady Booch, Ivar Jacobson, and James Rumbaugh as a standard notation for object-oriented analysis and design [BRJ97]. UML version 1.0 incorporates variants of techniques from the successful methods OOA/OOD [Boo94], OMT [RBP+91], and OOSE [Jac92] from the same authors, and adds some new contributions. Although most of the single techniques are in principle well understood and widely used, at the current time neither a standardized \Uni ed Method" nor case studies exist that show the methodical use of UML 1.0 as a whole.

Open questions are, for example, whether the techniques are sucient for the description of all important aspects of object-oriented systems, which relationships and consistency criteria exist between them, and how they should be used and re ned during the development process. While some answers to these problems can be found during the attempt to formalize the semantics of UML [BHH+97], other problems and answers can be found most easily by performing \real-world" case studies, which may also serve as a reference for future developers.


Wiley.Computer.Graphics.for.Java.Programmers.2nd.Edition.Mar.2007




This book is primarily about graphics programming and mathematics. Rather than discussing general graphics subjects for end users or how to use graphics software, we will deal with more fundamental subjects, required for graphics programming. In this chapter, we will first understand and appreciate the nature of discreteness of displayed graphics on computer screens. We will then see that x- and y- coordinates need not necessarily be pixel numbers, also known as device coordinates. In many applications logical coordinates are more convenient, provided we can convert them to device coordinates. Especially with input from a mouse, we also need the inverse conversion, as we will see at the end of this chapter.


Thursday, February 7, 2008

O'Reilly - Tomcat The Definitive Guide


The first Java servlet container was Sun Microsystems's Java Web Server (JWS). It was more affordable than most commercial server offerings, but it did not enjoy widespread commercial success. This was due largely to Java's novelty and the fact that servlets had only recently been introduced. One of JWS's main outgrowths, however, was the Java Servlet Specification, a de facto standard that Sun documented and made available separately. One big success of JWS was that it put Java servlets in the limelight.

In 1996, a plethora of free Java servlet containers became popular. Apache's JServ and CERN/W3C's Jigsaw were two of the earliest open source Java servlet containers. They were quickly followed by several more, including Jetty (http://www.jetty.org), the Locomotive Application Server (see the web archives at http://web.archive.org/web/*/http://www.locomotive.org), Enhydra (http://www.enhydra.org), and many others. At the same time, commercial servlet containers became available as the industry embraced the Java servlet standard; some of these were WebLogic's Tengah, ATG's Dynamo, and LiveSoftware's JRun.


portability java language 1998



Introduction
The Portability submission represents a significant change to CORBA. It completely redefines how servers are written in CORBA and in some respects the way clients may interact with those servers. This submission attempts to be true to the spirit of the Portability submission, while trying to maintain as much compatibility as possible with the existing mapping. In some cases, such as the existing server-side mapping, we were forced to deprecate the existing model because of incompatibilities with the Portability submission. In other cases, compatible changes to the mapping were made to support an existing behavior as closely as possible. At all times, the user’s point-ofview was considered and much thought was given to usability and performance issues. The final result is a significant step forward in the types of application which can be built with CORBA using the Java language.

O'Reilly - Mastering Regular Expressions in Java 2nd Edition


Social and Political Issues

Some of the non-technical issues to consider are:

  • Documented? Does it use Javadoc? Is the documentation complete? Correct? Appr oachable? Understandable?

  • Maintained? Is the package still being maintained? What’s the turnar ound time for bugs to be fixed? Do the maintainers really care about the package? Is it being enhanced?
  • Suppor t and Popular ity? Is there official support, or an active user community you can turn to for reliable support (and that you can provide support to, once you become skilled in its use)?

O'Reilly - Programming Jakarta Struts 2nd Edition


The Struts open source framework was created to make it easier for developers to build web applications based on the Java Servlet and JavaServer Pages (JSP) technologies. Like a building, a web application must have a solid foundation from which the rest of the structure can grow. The Struts framework provides developers with a unified infrastructure upon which Internet applications can be based. Using Struts as the foundation allows developers to concentrate on building the business application rather than on the infrastructure.

The Struts framework was created by Craig R. McClanahan and donated to the Apache Software Foundation (ASF) in 2000. The project now has several committers from around the world, and many developers are contributing to the overall good of the framework. The Struts framework is one of many well-known and successful Apache Jakarta projects. Others include Ant, log4j, and Tomcat. The overall mission of the Jakarta project is to provide commercial-quality server solutions, based on the Java platform, in an open and cooperative fashion.


O'Reilly - Learning Wireless Java



This book is about programming with J2ME on wireless devices. If you're already familiar with the architecture, you probably noticed that the Connected Limited Device Configuration (CLDC) and the Mobile Information Device Profile (MIDP) classes are not large. Therefore, this book is correspondingly compact in size. The book acts as a quick guide for programmers who are familiar with the Java 2 Standard Edition (J2SE ) and want to get up to speed quickly with the J2ME. We assume that you are familiar with Java programming and have worked with the J2SE classes. In addition, we assume that you are familiar with setting up Java to work under various environments (Windows or Unix platforms), as well as compiling and running Java applications.

The book also serves as a quick reference for Java programmers who are interested in developing wireless software applications. The examples presented throughout the book are a good starting point for working with all the MIDP features, including user interface, networking, and databases. However, we should point out that this book is not a rehash of the entire J2SE class library. Several of the classes of java.io, java.lang, and java.net are included in the CLDC and
MIDP libraries, but are less bulky than their J2SE counterparts. We assume that you already know how to use these classes, although we have included them in the API reference for completeness.

O'Reilly - Mac OS X for Java Geeks


Mac OS X 10.0

Mac OS X 10.0 was the first commercial release of Mac OS X. That release, however, wasn't particularly usable.

Convincing a large body of developers to embrace a new platform is not easy. You can release developer seeds, betas, and prereleases all you want, but at the end of the day, major operating system vendors have to release something that can be called a 1.0 product (or, in the case of Mac OS X, a 10.0 product). Releasing this product lets users know that you're transitioning from testing to "prime time."

The commercial release of Mac OS X 10.0 was just that: it was Apple's way of telling developers that the system was ready to go and that they should get on board. At this point, Apple began shipping Mac OS X 10.0 with their hardware, but didn't make it the default operating system. The release was lacking in quality, features, and supported applications, and everyone knew that the product needed more work.


O'Reilly - Jakarta Commons Cookbook


This chapter introduces utilities that augment the Java 2 Standard Edition (J2SE), providing classes and utilities that make some of the more mundane programming tasks more straightforward. Jakarta Commons Lang is a collection of useful supplements to the J2SE. This package fills gaps present in the standard Java API and provides a number of simple, time-saving utility classes. Sun's Javadoc for the java.lang package in the J2SE states that the package "provides classes that are fundamental to the design of the Java programming language." In the same vein, Jakarta Commons Lang provides classes that augment the fundamental design of the Java programming language.

You may be tempted to skip the simple recipes presented in this chapter and continue on to more advanced topics in this text. String manipulation, date truncation, and toString( ) methods do not inspire the sense of mystery and genius one feels when working with Extensible Markup Language (XML) or an open source text-to-speech engine. But, even if you are the most fluent speaker of Java, there are lessons to be learned from the utilities introduced in this chapter; a simple trick learned here may save you a few minutes every single day. Don't waste your time rewriting and maintaining utilities that already exist in Commons Lang; there are more interesting problems to be solved, and building hashcode() functions is not one of them.


O'Reilly - JBoss 3.2 Workbook for Enterprise JavaBeans 3rd Edition


Contents of This Book

This workbook is divided into three sections:

♦ Server Installation and Configuration – This section will walk you through downloading, installing, and configuring JBoss. It will also provide a brief overview of the structure of the JBoss installation.

♦ Exercises – This section contains step-by-step instructions for downloading, building, and running the example programs in Enterprise JavaBeans, Third Edition (which, for brevity, this workbook will refer to as “the EJB book”). The text will also walk through the various deployment descriptors and source code to point out JBoss features and concerns.

♦ Appendix – This section provides useful information that did not fit neatly in the other sections: a collection of XML snippets various database vendors.


O'Reilly - J2EE Design Patterns


A design pattern is a recurring solution to a recurring problem. From a programming perspective, a pattern provides a set of specific interactions that can be applied to generic objects to solve a known problem. Good patterns strike a balance between the size of the problem they solve and the specificity with which they address the problem.

The simplest patterns may be summed up in no more than a sentence or two. Using a database to store information for a web site is a pattern, albeit a fairly high-level and obvious one. More complex patterns require more explanation, perhaps including the use of modeling languages or a variety of other forms of longer description.

Design patterns originated outside the computer industry, originally showing up in conventional (as opposed to computer systems) architecture. Architects of buildings and architects of software have more in common than one might initially think. Both professions require attention to detail, and each practitioner will see their work collapse around them if they make too many mistakes.


O'Reilly - J2ME in a Nutshell


This chapter covers the J2ME wireless toolkit, a development environment provided by Sun that allows you to create and test MIDlets using a cell-phone emulator that can be customized to resemble a number of different cell phones and PalmOS-based handhelds. It also looks at how to use the wireless toolkit in conjunction with Sun's Forte for Java IDE to create a complete development environment, and it investigates a number of alternative third-party products that provide similar functionality.

These first nine chapters provide a tutorial introduction to J2ME, with particular emphasis on wireless devices, which are currently the most popular application of J2ME technology. The core of this book, however, is the API quick reference, Chapter 10 through Class, Method, and Field Index, which is a succinct but detailed API reference formatted for optimum ease of use. Please be sure to read "How To Use This Quick Reference," which appears at the beginning of the reference section; it explains how to get the most out of this section.

O'Reilly - Enterprise JavaBeans 4th Edition


This book is about Enterprise JavaBeans 2.1, the latest version of the Enterprise JavaBeans specification. It also covers Enterprise JavaBeans 2.0, which is still in widespread use. Just as the Java platform has revolutionized the way we think about software development, the Enterprise JavaBeans (EJB) specification has revolutionized the way we think about developing mission-critical enterprise software. It combines server-side components with distributed object technologies, asynchronous messaging, and web services to greatly simplify the task of application development. It automatically takes into account many of the requirements of business systems, including security, resource pooling, persistence, concurrency, and transactional integrity.


This book shows you how to use Enterprise JavaBeans to develop scalable, portable business systems. But before we can start talking about EJB itself, we'll need a brief introduction to the technologies addressed by EJB, such as component models, distributed objects, asynchronous messaging, and web services. It's particularly important to have a basic understanding of component transaction monitors, the technology that lies beneath EJB. In Chapter 2 and Chapter 3, we'll look at EJB itself and see how enterprise beans are put together. The rest of the book is devoted to developing enterprise beans for an imaginary business and discussing advanced issues.

O'Reilly - Hardcore Java


Tools

One of the most important skills in professional development is knowing how to use tools. There are a wide variety of tools available, from the standard text editor and compiler to full-blown IDEs that do everything for you. Selecting the best tools for the job will make you a more productive developer.

UML Diagramming

For creating diagrams in UML, I use a product called Magic Draw UML, by No Magic, Inc. (http://www.magicdraw.com/). This tool is, without a doubt, the best professional UML modeling tool on the market. Rational Rose and Together can't even touch the functionality and quality of Magic Draw. I like it so much that I bought a copy of the Enterprise edition for myself. I highly recommend this product. Although it isn't free like other tools I recommend, it is well worth the price.

IDE

The IDE I use is Eclipse 3.0M4, which happens to be the IDE I use professionally as well. Eclipse simply has the single best development tool on the market. I don't know how I could live without my refactoring tools and the other goodies that come with Eclipse. You can find Eclipse at http://www.eclipse.org/. Also, I use many Eclipse plug-ins to make my job easier. They can be found in the Community section of eclipse.org, or you can surf the best directory of Eclipse plug-ins at http://eclipse-plugins.2y.net/eclipse/index.jsp.


O'Reilly - Designing Enterprise Applications with Java 2 Enterprise Edition


THE Internet and World Wide Web represent a foundation on which enterprises are working to build an information economy. In this economy, information takes on as much value as goods and services, and becomes a vital part of the market. The information economy challenges today’s enterprises to radically re-think the way they do business.

Predictions about the future of this economy range from glowing scenarios of dynamic new business, industrial, and financial environments capable of unlimited expansion, to gloom and doom prophecies of overinflated expectations and unsustainable hypergrowth. Whatever the predictions, the reality is that enterprises have always tried to gain a competitive advantage by any reasonable means at their disposal, including the latest technologies. This is a natural survival instinct: all viable enterprises, including for-profit, non-profit, and government institutions, continuously look for ways to keep pace by adopting such changes. Complacent organizations routinely fall by the wayside, while the innovators work to transform new challenges into business success.


O'Reilly - Developing Java Beans


As software developers, we are constantly being asked to build applications in less time and with less money. And, of course, these applications are expected to be better and faster than ever before. Object-oriented techniques and component software environments are in wide use now, in the hope that they can help us build applications more quickly. Development tools like Microsoft's Visual Basic have made it easier to build applications faster by taking a building-block approach to software development. Such tools provide a visual programming model that allows you to include software components rapidly in your applications.

The JavaBeans architecture brings the component development model to Java, and that's the subject of this book. But before we get started, I want to spend a little time describing the component model, and follow that with a general overview of JavaBeans. If you already have an understanding of these subjects, or you just want to get right into it, you can go directly to Chapter 2. Otherwise, you'll probably find that the information in this chapter sets the stage for the rest of the book.


O'Reilly - Database Programming with JDBC and Java 2nd Edition


One important test of whether a component of your enterprise system is proprietary is whether or not another vendor could, in principal, provide a black-box implementation of that component. The Java Virtual Machine (JVM), for example, is an open specification for which others can—and some do—write independent implementations. Java's suitability for this requirement, however, goes beyond the fact that it is a standardized language that is platform-independent. It also provides a host of APIs that you are guaranteed to find on any JVM for accessing hardware and software resources traditionally blocked by expensive, proprietary interfaces. For its original release, the Java specification prescribed what Sun termed the Java Core API—the basic objects required for a minimally viable language. The Java platform specification has since grown to encompass many other APIs. The following is an abridged list of some of the Java APIs:

JavaBeans™
In response to the Microsoft ActiveX threat, JavaSoft developed JavaBeans, a platformneutral specification for creating software components. Part of the JavaBeans specification actually involves interfacing with ActiveX components.

Java Commerce
Java Commerce is an Internet-based API for providing secure economic transactions across an insecure network. This API includes Java Wallet, which is a framework for client-side credit card, debit card, and electronic cash transactions.

Java Core
Java Core consists of libraries that shipped with the JDK 1.0 release. It includes the java.applet, java.awt, java.io, java.lang, java.net, and java.util packages and provides the core level of functionality needed in order to build simple applets and applications in Java.


Tuesday, February 5, 2008

Java InstantCode Developing JSP and XML Integrated Solutions 2004

About InstantCode Books

The InstantCode series is designed to provide you - the developer - with code you can use for common tasks in the workplace. The goal of the InstantCode series is not to provide comprehensive information on specific technologies - this is typically well-covered in other books. Instead, the purpose of this series is to provide actual code listings that you can immediately put to use in building applications for your particular requirements.

How These Books are Structured

The underlying philosophy of the InstantCode series is to present code listings that you can download and apply to your own business needs. To support this, these books are divided into chapters, each covering an independent task.

Each chapter includes a brief description of the task, followed by an overview of the element of the book's subject technology that we will use to perform that task. Each section ends with a code listing: each of the individual code segments in the chapter is independently downloadable, as is the complete chapter code. You will be able to download source code files, as well as application files.


Java Servlet Programming 1998


The rise of server-side Java applications is one of the latest and most exciting trends in Java programming. The Java language was originally intended for use in small, embedded devices. It was first hyped as a language for developing elaborate client-side web content in the form of applets. Until recently, Java's potential as a serverside development platform had been sadly overlooked. Now, Java is coming into its own as a language ideally suited for server-side development.

Businesses in particular have been quick to recognize Java's potential on the server—Java is inherently suited for large client/server applications. The crossplatform nature of Java is extremely useful for organizations that have a heterogeneous collection of servers running various flavors of the Unix and Windows operating systems. Java's modern, object-oriented, memory-protected design allows developers to cut development cycles and increase reliability. In addition, Java's built-in support for networking and enterprise APIs provides access to legacy data, easing the transition from older client/server systems.

Java servlets are a key component of server-side Java development. A servlet is a small, pluggable extension to a server that enhances the server's functionality. Servlets allow developers to extend and customize any Javaenabled server—a web server, a mail server, an application server, or any custom server—with a hitherto unknown degree of portability, flexibility, and ease. But before we go into any more detail, let's put things into perspective.


Java Swing 2nd Edition 2005


This book is best described as a programmer’s guide, serving both as a reference and a tutorial. Emphasis is placed on using Swing to solve a broad selection of realistic and creative problems. We assume an intermediate knowledge of Java, including the basics of putting together an AWTbased GUI, how the event model works, and familiarity with anonymous and explicit inner classes. Those who do not have this background can pick it up in any beginner book on AWT or Swing. However, the first edition of this book has proven to be most useful to those who come to it with an intermediate understanding of Swing. For this reason we do not recommend this book to Swing beginners. For beginners we suggest Manning’s own Up to Speed with Swing by Steven Gutz.

Our goal was to produce a book that contains enough explanation and examples to satisfy the most demanding Swing developer. We feel we have accomplished this goal again with the updates in this edition, but please judge for yourself and we welcome all constructive feedback. Unlike the first edition, however, this version is not freely available on the publisher’s web site. The first edition will remain available online at www.manning.com/sbe, but we hope that we have developed enough of a following to generate more sales with the second edition without giving it away for free. Let’s hope this is true!


Java Web Services Architecture (2003)


I started programming in the early 1980s writing Fortran on cards. Technology has clearly improved since then and now I develop large-scale, mission-critical applications using multi-tiered J2EE and Web services. Not only have technologies improved in this time, so have methodologies. In the past I preferred a prescriptive approach to development, one that was documentation heavy and which required large teams of professionals to build complex systems. As I gained greater experience I came to realize that the overhead of prescriptive processes made them inappropriate for most modern efforts. I came to realize that a more streamlined approach, one that focuses on doing just the minimum required to get the job done, was much more effective. In other words I have learned that an agile approach is often superior to a prescriptive approach.

So what does that have to do with this book? This book is the equivalent of my "agile foreword"—it focuses on exactly what you need to get the job done without going into needless fluff. Each chapter covers a single concept that is critical to your success developing and/or using Web services in Java. The chapters are well written, and more importantly they are written by developers with real-world experience. Each chapter concisely covers the concepts that would be found in a specialized book ten times as long. Yet each chapter isn't simply an overview; instead it is a thorough discussion that describes everything you need to know to be effective. This book is really well done.


Javascript In 10 Simple Steps Or Less (2004)


Since the mid-1990s when Netscape introduced version 2 of its flagship Netscape Navigator browser, JavaScript has been part of the Web development landscape. Providing a mechanism to implement dynamic interactivity in the browser, without connecting to the server, JavaScript is at the core of the Dynamic HTML model, which allows today’s modern browsers to host sophisticated applications and user interfaces.

This book is a recipe book that provides you with quick, digestible examples of how to perform specific tasks using JavaScript. These tasks range from simple tasks such as displaying dynamic output in the browser window to complex tasks such as creating a dynamic, interactive menu system.

This book isn’t a tutorial in JavaScript. It is designed to be a useful reference when you are actively engaged in building your Web applications and need quick answers to the question “How do I do this in JavaScript?” For most tasks of low and medium complexity, you will likely find an example in this book. Completing complex tasks can often be achieved by combining more than one sample tasks from the book.

Mastering Enterprise JavaBeans 3.0 4th Ed 2006


This book is a tutorial on Enterprise JavaBeans (EJB). It’s about EJB concepts, methodology, and development. This book also contains a number of advanced EJB topics, giving you a practical and real-world understanding of the subject. By reading this book, you will acquire a deep understanding of EJB. Make no mistake about it—what you are about to read is not easy. EJB incorporates concepts from a wealth of areas, including distributed computing, databases, security, component-based architecture, message-oriented systems, and more. Combining them is a magnificent stride forward for the Java community, but with that comes a myriad of concepts to learn and understand. This book will teach you the concepts and techniques for authoring distributed, enterprise components in Java, and it will do so from the ground up. You need only to understand Java to understand this book. While you’re reading this book, you may want to download the EJB specification, available at http://java.sun.com/products/ejb/docs.html.


Mastering Enterprise JavaBeans, 3rd Ed 2005


This book is a tutorial on Enterprise JavaBeans (EJB). It’s about EJB concepts, methodology, and development. This book also contains a number of advanced EJB topics, giving you a practical and real-world understanding of the subject. By reading this book, you will acquire a deep understanding of EJB. Make no mistake about it—what you are about to read is not easy. EJB incorporates concepts from a wealth of areas, including distributed computing, databases, security, component-driven software, and more. Combining them is a magnificent stride forward for the Java community, but with that comes a myriad of concepts to learn and understand. This book will teach you the concepts and techniques for authoring reusable components in Java, and it will do so from the ground up. You need only to understand Java to understand this book. While you’re reading this book, you may want to download the EJB specification, available at http://java.sun.com/products/ejb/docs.html.


Object Oriented Data Structures Using Java 2002


When we consider computer programming, we immediately think of writing code in some computer language. As a beginning student of computer science, you wrote programs that solved relatively simple problems. Much of your effort went into learning the syntax of a programming language such as Java or C++: the language’s reserved words, its data types, its constructs for selection and looping, and its input/output mechanisms.

You learned a programming methodology that takes you from a problem description all the way through to the delivery of a software solution. There are many design techniques, coding standards, and testing methods that programmers use to develop high-quality software. Why bother with all that methodology? Why not just sit down at a computer and enter code? Aren’t we wasting a lot of time and effort, when we could just get started on the “real” job?

If the degree of our programming sophistication never had to rise above the level of trivial programs (like summing a list of prices or averaging grades), we might get away with such a code-first technique (or, rather, a lack of technique). Some new programmers work this way, hacking away at the code until the program works more or less correctly—usually less!

As your programs grow larger and more complex, you must pay attention to other software issues in addition to coding. If you become a software professional, you may work as part of a team that develops a system containing tens of thousands, or even millions, of lines of code. The activities involved in such a software project’s whole “life cycle” clearly go beyond just sitting down at a computer and writing programs. These activities include:


object oriented Design in Java 1998


Why does the world need another book on design? More to the point, why should you read this book on object-oriented design in Java? A trip to amazon.com, the Internet bookstore where you can find almost any book ever written, reveals over 200 titles that contain the word design or designing applied to computers or programming. If you decided to read one of these books each week, it would take you more than four years to finish the current crop. Even narrowing the field to books whose titles contain the words design and object-oriented, still yields a hefty 75 possibilities. Contemplating that task, you may find yourself agreeing with King Solomon, who wrote several thousand years ago: “Of making many books there is no end; and in much study there is a weariness of the flesh.”

Why are there so many books on software design? A cynic would suggest that books on design flourish for the same reason that books on dieting fill the bookstores: because their readers have a boundless hope that this regimen will work! While there might be some justification for this viewpoint—you don’t have to travel far to find a program that is hard to use or that breaks down regularly—a more fundamental reason is that different software developers mean different things by the word design.

You’ve probably heard the ancient Indian legend (or read John Godfrey Saxe’s version)of the six blind men examining an elephant. Each of them feels only a portion of the elephant—the side, a tusk, the trunk, or a leg—and each concludes that the elephant is like a wall, a spear, a snake, or a tree.


O'Reilly - Better Faster Lighter Java


This book isn't for uber-programmers who already have all the answers. If you think that J2EE does everything that you need it to do and you can make it sing, this book is not for you. Believe me, there are already enough books out there for you.

If you've already cracked the code for simplicity and flexibility, I'm probably not going to teach you too much that's new. The frameworks I hold up as examples have been around for years—although incredibly, people are only now starting to write about them. The techniques I show will probably seem like common sense to you. I'll take your money, but you'll probably be left wanting when you're done.

This book is for the frustrated masses. It's intended for those int ermediate-to-advanced developers with some real experience with Java who are looking for answers to the spiraling complexity. I'll introduce you to some ideas with power and bite. I know that you won't read a phone book. You haven't got time, so I'll keep it short. I'll try to show you techniques with real examples that will help you do things better than you did before.


O'Reilly - Creating Effective JavaHelp


When I first saw a demonstration of Sun Microsystems' JavaHelp early in 1998, I knew that Sun had designed a great new HTML-based help system that would answer most helpauthors' needs. They proposed the best online help solution for Java applications and applets, and offered a great source for online help and documentation in general. Finally online documentation that is easy to author, easy to use, and, best of all, fully functional across all computer platforms.

We are entering an age in software documentation where new HTML-based help systems are emerging and are trying to provide solutions for all help-authoring needs. With Java becoming such a widely used programming language, help authors need an HTML-based help system that is as flexible as the Java applications themselves. JavaHelp to the rescue!

To get you started learning JavaHelp, this chapter provides the following topics:

What is JavaHelp?

• Using JavaHelp for online documentation
• Understanding the files in a HelpSet
• Following the JavaHelp process
• Installing JavaHelp on your computer
• Seeing JavaHelp in action
• Deciding how to present a HelpSet
• Deciding how to install a HelpSet
• Encapsulating HelpSet files
• Finding more information on JavaHelp


The world of information technology is evolving rapidly. Enterprise applications must deliver services that meet the needs of the global business env



Welcome to Java! We have worked hard to create what we hope you will find to be an informative, entertaining and challenging learning experience. Java is a powerful computer programming language that is fun for novices and appropriate for experienced programmers to use in building substantial information systems. Java How to Program, Sixth Edition, is an effective learning tool for each of these audiences.

The core of the book emphasizes achieving program clarity through the proven techniques of object-oriented programming. Nonprogrammers will learn programming the right way from the beginning. The presentation is clear, straightforward and abundantly illustrated. It includes hundreds of working Java programs and shows the outputs produced when those programs are run on a computer. We teach Java features in the context of complete working Java programswe call this the live-code approach. The example programs are included on the CD that accompanies this book, or you may download them from www.deitel.com or www.prenhall.com/deitel.

The early chapters introduce the fundamentals of computers, computer programming and the Java computer programming language, providing a solid foundation for the deeper treatment of Java in the later chapters. Experienced programmers tend to read the early chapters quickly and find the treatment of Java in the later chapters rigorous and challenging.


Java 2 Enterprise Edition 1.4 Bible 2004


The world of information technology is evolving rapidly. Enterprise applications must deliver services that meet the needs of the global business environment, ensure that users’ data remains private, protect the integrity of enterprise data, and ensure that business transactions are accurate and processed quickly. Enterprises today need to extend their reach, reduce their costs, and lower the response times of their services to customers, employers, and suppliers. Typically, applications that do these things must combine enterprise information systems (EIS) with new business functions that deliver services to a broad range of users.

J2EE reduces the cost and complexity of developing multi-tier enterprise services. J2EE applications can be rapidly deployed and easily enhanced as the enterprise responds to competitive pressures. This book provides leading-edge but practical examples to illustrate how J2EE can be applied to existing business and technology initiatives. The book focuses on thinking concretely about the specifications that comprise J2EE, while providing solutions to today’s problems.

This book is ideal for those who prefer personal interaction to processes and tools, responding to change to following a plan, and techniques that work to comprehensive documentation. Some of the respective authors’ anecdotal experiences will periodically appear. This will make for an easier read and allow the reader to connect and become involved.


Java 2 Micro Edition 2002.



The first part of this book focuses on introducing the Java 2 Micro Edition. Chapter 1 describes how J2ME fits into the larger picture of the Java 2 platform. The case for why J2ME is necessary and useful is discussed as well as the origins from which J2ME has sprung. The second chapter describes how J2ME is put together. This provides a context for how J2ME might be used to develop applications for consumer electronics and Internet appliances. Chapter 2 also provides a comprehensive, yet high-level tour of J2ME. Finally, before delving into the particulars of developing J2ME applications, chapter 3 provides a quick introduction to the development environments, covering the particulars of how to obtain various J2ME development tools and technologies as well as describing the example application that will be used throughout the book.



Java All-in-One Desk Reference for Dummies 2005


About This Book
Java All-in-One Desk Reference For Dummies is intended to be a reference for all the great things (and maybe a few not-so-great things) that you may need to know when you’re writing Java programs. You can, of course, buy a huge 1,200-page book on each of the programming topics covered in this book. But then, who would carry them home from the bookstore for you? And where would you find the shelf space to store them? In this book, you get the information you need all conveniently packaged for you in between one set of covers.

This book doesn’t pretend to be a comprehensive reference for every detail on these topics. Instead, it shows you how to get up and running fast so that you have more time to do the things you really want to do. Designed using the easy-to-follow For Dummies format, this book helps you get the information you need without laboring to find it.

Java All-in-One Desk Reference For Dummies is a big book made up of several smaller books — minibooks, if you will. Each of these minibooks covers the basics of one key element of programming, such as installing Java and compiling and running programs, or using basic Java statements, or using Swing to write GUI applications.

Whenever one big thing is made up of several smaller things, confusion is always a possibility. That’s why this book is designed to have multiple access points to help you find what you want. At the beginning of the book is a detailed table of contents that covers the entire book. Then, each minibook begins with a minitable of contents that shows you at a miniglance what chapters are included in that minibook. Useful running heads appear at the top of each page to point out the topic discussed on that page. And handy thumbtabs run down the side of the pages to help you quickly find each minibook. Finally, a comprehensive index lets you find information anywhere in the entire book.


Java Extreme Programming Cookbook (O'Reilly, 2003)



Regression testing

Automated regression testing is the building block that makes XP possible, and we will spend a lot more time talking about it in the next chapter. Testing, most notably unit testing, is tightly coupled with an automated build process. In XP, each new feature is implemented along with a complementary unit test. When bugs are encountered, a test is written to expose the bug before the bug is fixed. Once the bug is fixed, the test passes.

Tools must make it easy for programmers to write and run tests. If tests require anything more than a simple command to run, programmers will not run the tests as often as they should. JUnit makes it easy to write basic unit tests, and more specialized testing frameworks make it possible to write tests for web applications and other types of code. JUnit has been integrated with Ant for a long time, and most recent IDEs make it easy to run JUnit tests by clicking on a menu and selecting "run tests."

Monday, February 4, 2008

Building Applications With WebSphere Studio And JavaBeans A Guided Tour 2003

Introduction

This book takes you on a guided tour to building applications with the WebSphere Studio Visual Editor for Java and JavaBeans. Along the way, you'll learn the basics of how to develop Java applets and applications, as well as more advanced topics such as using relational databases and eXtensible Markup Language (XML) documents to store your application data. By the end of the tour you'll be able to use WebSphere Studio to build your own applications and you'll understand why JavaBeans are so useful for application programming.

If you're new to Java and Java development environments, that's OK. This book assumes you have some basic knowledge of the Java programming language, but you certainly don't need to be an expert to follow the tour. You do need to be running one of the Windows operating systems, and as long as you're comfortable with Windows, the Internet, and Web browsers, you're ready to learn Java.

If you are already familiar with Java and Java development environments, that's OK, too. You'll still benefit from going through the tour, because it will teach you many of the WebSphere Studio features that will let you build your Java applications easier and faster.

This book uses the "show and tell" approach. If you flip through the pages, you'll notice that they are loaded with pictures showing how your applications should look at each step along the way. In addition, we've included two CDs that contain all the tools you'll need to follow along with the lessons.


Advanced Java 2 Platform How to Program (JDK 1.3, J2EE 1.2) 2001


1.1 Introduction
Welcome to the world of advanced Java 2 Platform programming! We have worked hard to create what we hope will be an informative, entertaining and challenging learning experience for you. The Java technologies you will learn are intended for developers and software engineers. Advanced Java 2 Platform How to Program presumes knowledge of either Java How to Program: Fourth Edition (ISBN: 0-13-034151-7) or The Complete Java Training Course, Fourth Edition (ISBN: 0-13-064931-7), which teach the fundamentals of Java and object-oriented programming. Advanced Java 2 Platform How to Program presents many advanced Java topics and introduces many new topics, using almost 40,000 lines of complete, working code and numerous illustrations to demonstrate the concepts. We integrate these technologies into substantial applications and enterprise systems that demonstrate how the pieces fit together. We call this our Live-Code™ approach.

We introduce technologies from the three Java editions—Java 2 Standard Edition (J2SE), Java 2 Enterprise Edition (J2EE) and Java 2 Micro Edition (J2ME). The beginning chapters of this book demonstrate several high-end concepts from J2SE (Java How to Program, Fourth Edition presents J2SE through the intermediate level). Advanced Java 2 Platform How to Program highlights many advanced features of J2EE, providing enterprise applications as examples. Finally, we introduce the exciting, leading-edge technologies of J2ME and wireless applications programming.

Art of Java Web Development - Struts, Tapestry, Commons, Velocity, JUnit, Axis, Cocoon, InternetBeans, Webwork 2004



This book is for every Java web developer, regardless of his or her level of expertise. It is designed primarily for intermediate to advanced developers, who understand the specifics of the various web APIs in Java but haven’t yet mastered the best way to apply them. It is perfect for developers who have heard terms like Model- View-Controller and Model 2, but weren’t present for the series of events that led to the widespread adoption of these best practices. It is also perfect for designers and architects of web applications because it discusses the implications of architecture and design at every opportunity.

This book is also well suited to developers who have looked at (and possibly struggled with) one of the many web frameworks on the market. It is unique in its coverage of web frameworks, giving equal weight to six different frameworks and comparing them on equal ground. Whether you are planning to use a framework or you want to write your own, understanding the similarities and differences between the existing frameworks will save you a great deal of time. Art of Java Web Development also illustrates new possibilities for those who are using a framework but aren’t happy with it.

Agile Java Development with Spring Hibernate and Eclipse 2006


WHEN JAVA DEVELOPMENT KIT (JDK) v1.0 was released in January 1996, it was a fairly straightforward application programming interface (API). Over the years, Java has matured into a full-blown platform. From JDK 1.0 to JDK 1.5, we have been introduced to many new features, such as the Java Collections Framework, logging API, auto-boxing, generics, and more. Although most of these are useful, Java has also become more complex, especially after the advent of the Java Platform Enterprise Edition (JEE). JEE introduced such concepts as Enterprise JavaBeans (EJB), which sought to simplify vendor-portable, enterprise-level distributed computing, but instead, it introduced unnecessary complexities for 80% of the applications out there. Nowadays, it is not uncommon for many people to think of Java/JEE as being a big and heavy technology. Well, for starters, this couldn't be further from the truth, and second, let's see if we can change this perspective in this book.

In the past few years, many open source frameworks have sprung up to solve some of the problems created by JEE. This book covers some of these open source frameworks (for example, Spring and Hibernate) as well as open source tools (such as Ant and Eclipse), which provide a comprehensive, effective, and elegant solution that can either be viewed as complementary or as a complete alternative to JEE, depending on how you apply these technologies for your specific needs. In addition, nimble software development processes such as Extreme Programming (XP) and Agile Model Driven Development (AMDD) can assist in accelerating the project delivery.



Beginning Java 2, SDK 1.4 Ed 2003


This chapter will give you an appreciation of what the Java language is all about. Understanding the details of what we'll discuss in this chapter is not important at this stage; you will see all of them again in greater depth in later chapters of the book. The intent of this chapter is to introduce you to the general ideas that underpin what we'll be covering through the rest of the book, as well as the major contexts in which Java programs can be used and the kind of program that is applicable in each context.

In this chapter you will learn:

  • The basic characteristics of the Java language.

  • How Java programs work on your computer.

  • Why Java programs are portable between different computers.

  • The basic ideas behind object-oriented programming.

  • How a simple Java program looks and how you can run it using the Java Development Kit.

  • What HTML is and how it is used to include a Java program in a web page.


Java - A Beginner's Guide, 3rd Edition (2005)


Java is the preeminent language of the Internet. Moreover, it is the universal language of Web programmers around the world. To be a professional Web developer today implies proficiency in Java. Therefore, if Internet-based programming is in your future, you have chosen the right language to learn—and, this book will help you learn it.

The purpose of this book is to teach you the fundamentals of Java programming. It uses a step-by-step approach complete with numerous examples, self-tests, and projects. It assumes no previous programming experience. The book starts with the basics, such as how to compile and run a Java program. It then discusses every keyword in the Java language. It concludes with some of Java’s most advanced features, such as multithreaded programming, generics, and applets. By the time you finish, you will have a firm grasp of the essentials of Java programming.

It is important to state at the outset that this book is just a starting point. Java is more than just the elements that define the language. Java also includes extensive libraries and tools that aid in the development of programs. Furthermore, Java provides a sophisticated set of libraries that handle the browser user interface. To be a top-notch Java programmer implies mastery of these areas, too. After completing this book, you will have the knowledge to pursue any and all other aspects of Java.


Jakarta Struts For Dummies 2004


About This Book

As if you didn’t know, Jakarta Struts For Dummies covers Jakarta Struts, the popular, open-source framework for creating Web applications in Java. We comprehensively explain the features in Jakarta Struts, including the following:

  • How Jakarta Struts structures Web application code into three groups — Model, View, and Controller — and how this helps make your code easier to write and maintain.
  • How Struts works with a Web container, JavaServer Pages, and Java servlets
  • Integrating Struts into a Web development environment
  • Controlling your application’s business logic
  • Representing your data, whether a few items or a huge and complex database
  • Designing the view — the JavaServer Pages that the application presents to the user
  • Internationalizing a Web application and using the internationalization feature to create easy-to-update text content, even if you care about only one language
  • Validating data

Jakarta Struts 2002


It took a couple of years before the benefits of using the web became clear to others outside of the CERN laboratories, but as we all know, it eventually erupted into what we see and use today From its beginnings, the web was designed for viewing hypertext documents, not editing them. However, it was a natural evolution to want the ability to also edit a document and submit the changes. In short time, the Common Gateway Interface (CGI) was created. CGI is a standard that allows web servers to interact or interface with external applications in such a way that hypertext pages no longer have to be static. A CGI program can retrieve results from a database and insert those results as a table in a hypertext document. Likewise, data entered into a hypertext page can also be inserted into the database. This opened up infinite possibilities and in fact, started the boon that was the Internet craze of the mid-nineties and lasts even today.

Although CGI applications are very good at what they do, there are some serious limitations with its approach. For one thing, CGI applications are very resource-intensive. For every request that comes from a browser, a new Operating System heavyweight process is created to handle the request. Once the CGI script is finished executing, the process has to be reclaimed by the OS. This constant starting and stopping of heavyweight processes is terribly inefficient. You can imagine how bad the response time might be if there are hundreds of concurrent users making requests to the same web application. Another major limitation of CGI is that it can’t link to other stages of web server request processing easily once it begins executing. This is because it’s running in a separate process from the web server and becomes difficult to handle things such as authorization, workflow, and logging. Other limitations of CGI have to do with the scripting languages available for CGI applications. Although CGI applications can be built in many different languages, the Perl programming language has been widely used to create web applications and in fact is still used by many Internet sites today. However, many web developers wanted more out of a web programming language.


Fundamentals of OOP and Data Structures in Java 2001


This is a CS 2 book that presents classical data structures in an object-oriented programming (OOP) context using Java. This book also focuses on the basic principles of OOP and graphical user interface (GUI)-based programming – two paradigms essential for modern programming and problem solving. Our book is aimed principally at CS 2 students but may also be valuable to software development professionals who wish to upgrade their skills in the areas of OOP, GUI programming, and classical data structures.

The software development principles associated with OOP provide a strong framework for presenting and implementing classical data structures. We adhere to and emphasize these principles throughout this book. Universities have been slow to introduce courses related to OOP into their curricula. Curriculum change has alwaysoccurred slowly at universities, but the past dozen years have been particularly disappointing in the area of OOP education. Often a department assumes that because it has switched language from Pascal or C to C++ or Java in CS 1 or CS 2 that it has made a commitment to object-oriented software education. This is simply not true. Object orientation embodies a set of principles often obscured by the intensive preoccupation with language details often evident in early university courses and the books that cater to these courses. The spate of CS 1 and CS 2 books featuring C++ or Java are often nothing more than warmed-over reruns of structured programming texts written originally for Pascal or C.

The principles of OOP and classical data structures are language independent. Our experience has shown that these principles need to be brought to life using well-crafted examples supported by a rich object-oriented programming language. In our view, Java fits this bill. It provides constructs and predefined standard libraries that directly support and connect to the rich body of underlying OOP and data structure principles. We have chosen Java because its usage is rising rapidly, it provides relative safety in programming, it is readily and inexpensively available (free in many cases), and it offers the user a clean and powerful object model. But make no mistake – this is not yet another book on Java programming. So what do we wish to achieve?