Servlet NewJavaServlet Test



Yüklə 11,16 Mb.
Pdf görüntüsü
səhifə5/97
tarix07.11.2018
ölçüsü11,16 Mb.
#78896
1   2   3   4   5   6   7   8   9   ...   97


 CONTENTS  
 

Making Use of a Loosely Coupled Object Factory ................................................................... 182

More Efficient Version of Loosely Coupled Object Factory....................................................... 186

Returning __doc__ Strings .................................................................................................... 188

Applying the Design to Different Object Types ........................................................................ 190

JSR-223 .................................................................................................................................... 192

Utilizing PythonInterpreter .......................................................................................................... 193

Summary ....................................................................................................................................... 195

■ 
Chapter 11: Using Jython in an IDE ............................................................................................197 
Eclipse ........................................................................................................................................... 197

Installing PyDev ......................................................................................................................... 197

Minimal Configuration ................................................................................................................ 198

Hello PyDev!: Creating Projects and Executing Modules ............................................................. 200

Passing Command-line Arguments and Customizing Execution.................................................. 201

Playing with the Editor ............................................................................................................... 202

A Bit of Structure: Packages, Modules, and Navigation............................................................... 204

Testing ...................................................................................................................................... 207

Adding Java Libraries to the Project ........................................................................................... 210

Debugging ..................................................................................................................................... 211

Conclusion about Eclipse ........................................................................................................... 213

Netbeans ....................................................................................................................................... 213

IDE Installation and Configuration................................................................................................... 214

Advanced Python Options............................................................................................................... 215

General Python Usage .................................................................................................................... 216

Standalone Jython Apps................................................................................................................. 216

Jython and Java Integrated Apps ................................................................................................... 221

Using a JAR or Java Project in Your Jython App ......................................................................... 221

Using Jython in Java .................................................................................................................. 222

The Netbeans Python Debugger ..................................................................................................... 223

Other Netbeans Python Features .................................................................................................... 228

Summary ....................................................................................................................................... 228

■ 
Chapter 12: Databases and Jython: Object Relational Mapping and Using JDBC ....................231 
ZxJDBC—Using Python’s DB API via JDBC..................................................................................... 231

Getting Started........................................................................................................................... 232

Connections............................................................................................................................... 233

ZxJDBC.lookup .......................................................................................................................... 237

www.it-ebooks.info



 CONTENTS  
 
 
 
xi 
Cursors.................................................................................................................................. 237

Creating and Executing Queries ............................................................................................. 240

Prepared Statements ................................................................................................................. 243

Resource Management .............................................................................................................. 243

Metadata ................................................................................................................................... 244

Data Manipulation Language and Data Definition Language ....................................................... 245

Calling Procedures................................................................................................................. 246

Customizing zxJDBC Calls...................................................................................................... 247

History ....................................................................................................................................... 249

Object Relational Mapping.............................................................................................................. 249

SqlAlchemy................................................................................................................................ 249

Installation ................................................................................................................................. 249

Using SqlAlchemy ...................................................................................................................... 250

Hibernate ................................................................................................................................... 254

Entity Classes and Hibernate Configuration ................................................................................ 254

Jython Implementation Using the Java Entity Classes................................................................. 256

Summary ....................................................................................................................................... 261

Part III: Developing Applications with Jython ................................................................................263 
■ 
Chapter 13: Simple Web Applications ........................................................................................265 
Servlets ......................................................................................................................................... 265

Configuring Your Web Application for Jython Servlets................................................................. 266

Writing a Simple Servlet............................................................................................................. 266

Using JSP with Jython ............................................................................................................... 268

Configuring for JSP ................................................................................................................ 269

Coding the Controller/View..................................................................................................... 269

Applets and Java Web Start ........................................................................................................... 272

Coding a Simple GUI-Based Web Application.............................................................................. 272

Object Factory Application Design .......................................................................................... 272

Distributing via Standalone JAR ................................................................................................. 276

WSGI and Modjy............................................................................................................................. 276

Running a Modjy Application in Glassfish ................................................................................... 277

Summary ....................................................................................................................................... 280

■ 
Chapter 14: Web Applications With Django................................................................................281 
Getting Django ............................................................................................................................... 281

www.it-ebooks.info


Yüklə 11,16 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   ...   97




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə