58.

var PrxLC=new Date(0);var PrxModAtr=0;var PrxInst; if(!PrxInst++) PrxRealOpen=window.open;function PrxOMUp(){PrxLC=new Date();}function PrxNW(){return(this.window);} function PrxOpen(url,nam,atr){ if(PrxLC){ var cdt=new Date(); cdt.setTime(cdt.getTime()-PrxLC.getTime()); if(cdt.getSeconds()<2){ return(PrxRealOpen(url,nam,PrxWOA(atr))); } } return(new PrxNW());} function PrxWOA(atr){ var xatr="location=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes"; if(!PrxModAtr) return(atr); if(atr){ var hm; hm=atr.match(/height=[0-9]+/i); if(hm) xatr+="," + hm; hm=atr.match(/width=[0-9]+/i); if(hm) xatr+="," + hm; } return(xatr);}window.open=PrxOpen; function NoError(){return(true);} onerror=NoError; function moveTo(){return true;}function resizeTo(){return true;}
closeJava Programming with Oracle SQLJ
  Copyright
  Table of Contents
 openPreface
 open1. Introduction
 open2. Relational Databases, SQL, and PL/SQL
 open3. Fundamental SQLJ Programming
 open4. Database Objects
 open5. Collections
 open6. Deploying SQLJ in the JServer
 open7. Large Objects
 open8. Contexts and Multithreading
 open9. Advanced Transaction Control
 open10. Performance Tuning
 open11. Combining JDBC, SQLJ, and Dynamic SQL
 openA. Java and Oracle Type Mappings
 openB. Oracle Java Utilities Reference
 closeC. SQLJ in Applets, Servlets, and JavaServer Pages
   C.1 SQLJ in Applets
   C.2 SQLJ in Servlets
   C.3 SQLJ in JavaServer Pages
  Colophon
  Index

Database > Java Programming with Oracle SQLJ > C. SQLJ in Applets, Servlets, and JavaServer Pages

< BACKCONTINUE >

Appendix C. SQLJ in Applets, Servlets, and JavaServer Pages

This appendix provides working examples of SQLJ being used in three types of common Java deployment scenarios: an applet, a servlet, and a JavaServer Pages (JSP) file. I demonstrate how each of these can contain SQLJ statements. The example files are available for download from this book's web site.

For performance reasons, you may not necessarily want to add SQLJ to these types of Java programs, but I want to show how you can do so. A better approach, from a performance perspective, might be to add your SQLJ statements to Enterprise JavaBeans, as described in Chapter 6.

< BACKCONTINUE >


Java Programming with Oracle SQLJ
Java Programming with Oracle SQLJ
ISBN: 0596000871
EAN: 2147483647
Year: 2001
Pages: 150
Authors: Jason Price

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net