Manning Logo
Home | Ordering Info | Shopping Cart | Manage My Account | Login
Attention customers: online shopping is now available exclusively through our main website: http://www.manning.com. Thank you.
Java Servlets by Example

Inside the book

Sample Chapters Table of Contents Index Preface Book Reviewers Source Code Author Online

Manning Blog

Why small is sweet?

Author Blogs

Dave Crane more...

Author Calendar

Upcoming Events

Catalog

Java .NET Perl XML All by Subject All by Title

About...

Manning Contact Us Ordering FAQs ebooks Covers Sandbox Forums Distributors Manning Early Access Program (MEAP) Affiliate Program Academia/Publicity User Group Program Press Releases Jobs

Manning Publications Co.
209 Bruce Park Avenue
Greenwich, CT 06830

Java Servlets by Example
Alan R. Williamson

1999 | 550 pages
ISBN: 188477766X
$39.95 Softbound print book  

Index

A

    Abstract Window Toolkit (AWT) 449
    accept() 460
    ActiveX 21, 22, 313
    Ada 10
    addapplet(...) 462
    addCookie(...) 318
    addItem(...) 411
    AI 289
    AIX 11
    algorithm 289, 328
    ANSI 13
    ANSI standard 420
    append(...) 88
    Apple Macintosh 97
    Apple Script 100
    Applet 449
    ArrayIndexOutOfBoundsException 202
    ASCII 105, 167, 200
    ASP 29
    AUTH_TYPE 94

B

    bandwidth 326, 467
    bandwidth requirements 467
    boolean 322
    BorderLayout 451
    broadcast protoco 441
    BufferedInputStream 225
    BufferedOutputStream 224, 225
    BufferedReader 114, 127

C

    C 95
    C++ 11, 95, 99
    C/C++ 12
    cAppletSession 460, 462
    cAppletSession class 460
    cBall 336
    cChatMessage 443, 444
    cChatServer 459
    CERN 2
    CGI 2, 3, 17, 21, 91, 109, 123, 132, 146, 161, 167, 312, 326, 405, 406
    CGI/Perl 226
    chaining 18
    chat_applet 449
    chat_html 445
    class 333, 428, 429, 432
    Class class 424
    classes 429, 431
    clearWarnings() 432
    commit 421
    commit() 432
    company firewall 448
    complete connection parameters 430
    Connection 421, 424, 425, 428, 429, 430, 431, 432, 433
    connection pool 429
    connection pool manager 434
    connectToServer(...) 458
    CONTENT 295
    CONTENT_LENGTH 94
    CONTENT_TYPE 94
    Content-Type 125, 229
    Cookie 316
    cookie 200, 313, 314, 315, 333, 335, 405, 484
    cookies operate 313
    core processing 328
    createStatement() 425
    cStudent 474
    custom htmlTemplate 334

D

    data 443
    database 303
    database.connection 484
    databaseRunner 478
    DataInputStream 458
    DataOutputStream 82, 168
    dbBroker 428, 434, 438
    dbBroker class 431, 433
    dbBroker.getInstance() 428, 430, 433
    dbBroker.pop() 433
    dbBroker.push(...) 434
    dbConnection 429, 431, 432, 433
    debugger 77
    delBasketServlet 414
    Deutsch, L. Peter 13
    displayTable(...) 335
    distributed computing 480
    doDelete(...) 29
    doGet(...) 29, 123, 142, 246
    doHead(...) 29
    Domain 315
    doOptions(...) 29
    doPost(...) 29, 123, 131, 142, 246
    doPut(...) 29
    doTrace(...) 29
    doXXX(...) 483
    DriverManager 421, 424, 425
    dynamically 487

E

    Eiffel 10, 11
    encasing 408
    ENCTYPE 123
    Enumeration 249, 485
    Event 452, 453
    Exact search 288
    Exception 77, 432
    executeQuery(...) 425

F

    FastCGI 95
    FETCH 421
    File 250, 251
    FileInputStream 114, 304
    FilenameFilter 251
    FileOutputStream 126
    firewall 467, 468
    FirstPerson 10
    flagged 431
    FlowLayout 451
    for(...) 328
    form set 408
    forName 424
    forward(...) 487, 488
    forwardServlet 487
    Frame 227
    Free Agent 175
    front-end processor 487
    FTP 17, 167

G

    GATEWAY_INTERFACE 94
    generic 430
    GenericServlet 26, 28, 32, 107, 144, 200, 225, 482
    GET 18, 95, 141, 146, 149, 246, 454
    get() 110
    getAttribute() 485
    getAttribute(...) 485, 488
    getAttributeNames() 485
    getConnection(...) 425
    getContentLength() 27
    getContentType() 27, 127
    getDomain 317
    getFile(...) 138
    getFreeConnection() 432
    getInitParameter(...) 24, 204
    getInitParameterName() 24
    getMaxAge 316
    getName 316
    getNextParameter() 127, 131
    getOutputStream() 28
    getParameter(...) 110, 145, 151, 204
    getParameterValues(...) 146
    getPath 317
    getRealPath(...) 25, 132, 304
    getRemoteAddr() 108
    getRemoteHost() 27
    getRequestDispatcher(...) 487
    getRoom(...) 462
    getSecure 317
    getServletConfig() 24
    getServletContext() 24
    getServletContext(...) 486
    getServletInfo() 24
    getString(...) 426
    getStudent(...) 473, 474
    getValue(...) 412
    .gif 8
    GIF 92, 104, 224, 226
    Gosling, James 9
    Graphics 226
    gzip 132

H

    handleEvent(...) 452
    hash table 443, 444
    hash table data structure 443
    Hashtable 110
    headers 488
    hire 429
    HTML 6, 210, 214
    htmlTemplate 329, 335
    HTTP 2, 19, 312, 448
    HTTP cookies 312
    Http ServletResponse 123
    HTTP status fields 488
    HTTP/1.0 145
    HTTP_ACCEPT 94
    HTTP_USER_AGENT 94
    HttpServlet 123, 133, 144, 200, 299, 336, 482, 483
    HttpServlet class 445
    HttpServletRequest 31, 145, 304, 322
    HttpSession 322, 323
    HttpSessionBindingListener 324

I

    IDE 77
    image/jpeg 124
    implements rmiDatabaseRunnerInterface 478
    incremental 333
    indexOf(...) 128, 136, 294
    InfoSeek 286, 287
    init() 114, 450, 453, 459
    init(...) 24, 26, 29, 107, 144, 201, 204, 214, 336, 445, 478, 483, 484
    initialization 485
    InputStream 126
    insert(...) 488
    interface 486
    Internet Relay Chat (IRC) 440
    IP address 106
    IRC 440
    IRC service 440
    isDirectory() 250
    isLoggedOn(...) 483
    isNew() 412
    ISP 487

J

    Java applet 313
    Java Server API 5, 14
    java.Applet 449
    java.io 250
    java.io.Serializable 322, 343
    java.lang.Class 19
    java.lang.Object 78
    java.net 167
    java.rmi 476
    java.rmi.Remote class 474
    java.rmi.RemoteException 473
    java.rmi.server package 474
    java.sql.Connection 421
    java.sql.DriverManager 421
    java.sql.ResultSet 421
    java.sql.Statement 421
    java.util 109
    java.util.Date.getTime() 88
    java.util.Properties 430
    Javascript 121
    JavaSoft 4
    javax.servlet 23, 144
    javax.servlet.http.Cookie 316
    javax.servlet.Servlet 23
    javax.servlet.SingleThreadModel 167
    JDBC 209, 424, 425, 426
    JDBC API 310, 425, 428
    jdbc.drivers 421
    jdbc.properties 424
    JDBC-ODB 422
    JDBC-ODBC 422, 424
    jdbcServlet 426
    JDK/JRE 422
    JDK1.1 36
    JIT 13
    Joy, Bill 10
    JPEG 92, 104, 124, 226
    .jpg 8
    JRun 70
    JSDK 22
    JVM 11

L

    lastID 455
    link 212
    Linux 11
    list(...) 251
    LISTSERV 377
    Live Software 68
    log(...) 26
    logical operator 290
    logical units 484
    logonServlet 483, 484
    logUserOn(...) 483
    lookup(...) 476
    looping 328

M

    Mac OS 11
    main(... 475
    mainThread object 340
    mapping 487
    META 291
    META REFRESH 216
    META tag 441, 444
    MIME 92, 125, 169, 228
    mIRC 440
    multiple pools 438
    Multiple-site 287
    multithreaded servlet 444
    multithreading 471

N

    Naughton, Patrick 9
    necessary stub and skeleton files 477
    Netscape 121, 312
    new rmiDatabaseRunner 474
    NEWS 167
    newsgroup 175
    next() 425
    NEXT_URL 412
    nextElement( 152
    nextToken() 254
    notifyAll() 336, 432
    Novell 11
    NSAPI 70
    null 249, 323, 329, 411, 412, 428, 457, 458

O

    Oak 9
    object orientation 482
    Object Serialization 114, 322
    object serialization 471
    ODBC 422, 424, 425
    online community 312
    openConnection() 431
    OS/2 97
    output routine 445
    own form 408

P

    parser 254
    Path 315
    PATH_INFO 94
    PATH_TRANSLATED 94
    Perl 95, 161
    placeholder 336
    plug in 228, 332
    polling interval 441
    pool 428
    pool manager 431, 433, 434, 438
    pop() 431
    port 1099 475
    POST 95, 141, 142, 146, 149, 185, 246, 453
    postcompiler 476
    Precedence search 288
    print(...) 136, 417
    print(...) method 164
    println(...) 83
    PrintStream 148
    PrintWriter.println(...) 29
    Project Oak 10
    push(...) 431, 432

Q

    QUERY_STRING 94

R

    random() 205
    RandomAccessFile 114, 304
    range setting 338
    readLine() 127, 128, 168, 208, 458
    readLine(...) 127, 458
    relative link 247
    REMOTE_ADDR 94
    REMOTE_HOST 94
    REMOTE_USER 94
    RemoteException 476
    removeApplet(...) 462
    removeAttribute(...) 486
    req.getCookies() 317
    REQUEST_METHOD 94
    RequestDispatcher 487, 488
    ResultSet 421, 425
    ResultSet method provides a getXXX(...) 426
    ResultSetMetaData 425
    ResultSets 421
    rmic compiler are in the classpath 476
    rmiDatabaseRunner 472
    RMISecurityManager 475, 479
    RoomPool 443
    roulette 331
    roulInfo 334, 339
    run() 336, 455, 459, 460
    Runnable 336, 449

S

    SC_NO_CONTENT 411, 412
    SCRIPT_NAME 94
    search engine 286. 487
    Secure 315
    SecurityException 251
    SecurityManager 21
    SELECT * FROM USER_TABLE 425
    sendmail 96
    sendMessage(...) 454, 458, 463
    sendRedirect(...) 122, 149, 165, 216
    Serializable 472
    SERVER_NAME 94
    SERVER_PORT 94
    SERVER_PROTOCOL 94
    SERVER_SOFTWARE 94
    service(...) 26, 29, 30, 107, 114, 123, 142, 150, 202, 205, 217, 246, 303, 306, 323, 411, 417, 428, 433, 445, 456, 459, 483
    servlet alias 475
    servlet chaining 486
    ServletBase 483
    servlet-chaining 487
    ServletContext 24, 484, 485, 486, 487, 488
    ServletExec 61
    ServletInputStream 28, 127
    ServletRequest 108, 127, 488
    ServletResponse 28, 224, 488
    servletrunner 36
    session data 312
    Session management 321
    session management functionality 484
    setActive() 429
    setAttribute(...) 484
    setBackground(...) 450
    setDomain 317
    setEditable(... 450
    setInActive() 429
    setMaxAge 316
    setPath 317
    setSecure 317
    setSize(...) 343
    setText() 455
    setValue 316
    Sheridan, Mike 9
    shopping baskets 313
    show(...) 452
    sign 338
    SingleThreadModel 428
    Slot machine 326
    Small talk 10
    SMTP 147, 167
    Socket 457
    socket requests 479
    socket streams 448
    Solaris 11
    SQLException 426
    SSI 34, 104, 224
    state information 321
    Statement 425
    static calls 434
    static class 438
    static reference 336
    static string array balls 337
    STDIN 95
    STDOUT 95
    Stemming 289
    String 135
    string 484
    string(...) 128
    StringBuffer 165, 294
    StringBuffer(...) 88
    StringTokenizer 254, 295, 296
    stub files 475
    subname 425
    subprotocol 425
    Substring search 288
    Sun 4, 10, 323
    sun.jdbc.odbc.JdbcOdbcDriver 424
    sun.net.smtp 148
    surfer 213
    synchronized 89, 115, 147, 166
    SYS_NOSLOTS 328
    SYS_WIN 329
    SYS_WINURL 329
    System.out.println(...) 78, 124

T

    -TABLEROW--> 417
    TCL 99
    TCP sockets 448
    TCP/IP 167
    TELNET 81
    text string 420
    The service(...) 154
    Thesaurus 289
    Thick client 3
    Thin client 3
    thread 336
    threaded 433
    thread-safe 444
    Throwable 77
    toString() 78, 165
    toString(...) 79
    truncated 444
    try...catch 207
    tttttttt11 433

U

    UnicastRemoteObject 474
    UnicastRemoteObject,HttpServle 478
    Uniform Resource Interface (URI) 487
    unique string 484
    UNIX 7, 11, 92, 97, 200, 227
    URL 287
    URL class 293
    URL_BADLOGIN 334
    URL_CHEAT. 338
    URL_TABLE 334
    URLConnection 201
    Usenet 175
    USER_TABLE 422

V

    valueBound(...) 324
    valueUnbound(...) 324
    Vector 201, 202, 216, 253, 292, 296, 305, 339, 341, 343, 410, 432, 443, 444
    Vector class 431
    virtual 484
    virtual hosts 484
    virtualBasket 411, 412, 418
    VMS 97

W

    wait() 340, 431
    Windows NT 11, 96, 97
    Windows95 11
    WinTel platform 440
    wrapper class 335, 429
    writeBytes(...) 168

X

    xyzServlet 487

Y

    Yahoo 286, 287

Z

    Zip 92, 132
    ZipEntry 132

Symbols

    ## as the delimiter 456
    ## delimiter 455
    /bin 475
    /n-porium/ 328

DESCRIPTION

Although CGI scripts provide 80% of today's server side processing, they are slow, inefficient, and memory-hungry. A new species is evolving to take their place, one which is lean, fast, portable, and easy to maintain: Java servlets.

Servlets are not merely an alternative to CGI, for they can do much more. Servlets have opened the door to a world of client/server applications that would have been too difficult or too time-consuming to consider before.

Java Servlets: By Example takes the reader into the world of servlets, moving example by example from the simple to the complex. An early chapter explains the simple HTML form processing through servlets. A later chapter shows how to connect a Java applet to a servlet, which is itself connected to a database.

Java Servlets: By Example is full of real-world, ready-to-run example code. Each chapter deals with a new problem and takes the reader through a series of servlet-based solutions. However, the book is detailed enough that it may also serve as a reference for the developer.

Translation rights for Java Servlets by Example have been granted for China and India. If you are interested in learning where to buy this book in a language other than English, please inquire at your local bookseller.

WHAT THE EXPERTS SAY ABOUT THIS BOOK...

"Alan Williamson has done an admirable job of teaching servlet programming through useful, typically non-trivial examples that demonstrate real-world solutions to common problems. If you plan to work with servlets (or already work with them) Java Servlets By Example will help you hone your craft and allow you to draw on some good ideas in the process.

The layered unveiling of concepts, clear explanations, and effective communication make Java Servlets By Example an excellent choice for novice or expert servlet developers alike. The examples are numerous and pragmatic, providing a practical look at the development process and exploring potentially useful foundations you can take and apply in a real commercial solution. In all, this book delivers on the promise of teaching servlet programming by example and represents a fine investment for almost any Java programmer."
--Claude Duguay, DevX.com

"Comprehensive description of everything to do with developer Java servlets. Servlets is a new topic for most developers, and this book covers everything they need to know to get started developing, and then covers more advanced topics. It has plenty of sample code to illustrate the concepts."
--Clipcode.com

WHAT THE READERS SAY ABOUT THIS BOOK...

"…I put this book to the ultimate test. I needed to learn servlets very fast for a client and it succeeded…"
--Billy Barron, Delphi Consultants, reviewed at JavaMUG

ABOUT THE AUTHOR...

Alan Williamson is based in the United Kingdom, where he runs his own Java software company, N-ARY Limited. He was educated at the University of Paisley and has worked for several international companies. He writes a regular column for the Java Developers Journal and sits on the judging panel of JARS, the online Java applet rating service.

Home | Catalog | Privacy Policy | About Manning

© 2003-2006 Manning Publications Co.