Javascript To Java Class Conversions - Netscape ENTERPRISE SERVER 6.1 - PROGRAMMER GUIDE TO SERVLETS Programmer's Manual

Guide to servlets
Table of Contents

Advertisement

JavaScript to Java Class Conversions

The objects used in an SSJS application must be converted to classes in Java.
Table B-2 can help you convert these objects.
Table B-2
SSJS Class
Client
Project
Request
Server
SSJS includes a special library to handle database connectivity. Since JSPs are Java,
all database connectivity is handled through JDBC. JDBC database drivers are
available directly from the database vendors. It is a good idea to use pure Java
(type 4) drivers whenever they are available. Table B-3 lists the database
connectivity classes.
Table B-3
SSJS Class
Connection
Cursor
DbPool
Stproc
ResultSet
JavaScript and Java basic classes
Java Class
Session
Context
Request
System or Context
JavaScript and Java database classes
Java Class
Connection
ResultSet
PooledConnection
CallableStatement
ResultSet
JavaScript to Java Class Conversions
Comments
A Java session is not as automatic as an
SSJS client.
Methods are split between two Java
classes.
Comments
There is no Cursor object; you can use
methods in the ResultSet class to
move the cursor.
This class is in the JDBC optional
package.
Appendix B
Converting SSJS Applications
105

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETSCAPE ENTERPRISE SERVER 6.1 - PROGRAMMER GUIDE TO SERVLETS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Enterprise server 6.1

Table of Contents