How to Access JSP Connectivity Coding

The Java Server Pages (JSP) language lets you create dynamic Web pages for a website using the Java language. JSP requires connectivity libraries to connect to databases, which contain the dynamic data. You muse use the JSP "import" statement to access these connectivity coding libraries. JSP includes the libraries, so you just need to edit your JSP pages to access the code.

Instructions

    • 1

      Right-click the JSP page you want to connect to the database libraries. Click "Open With" and select your preferred JSP editor.

    • 2

      Add the JSP connectivity library. You can add this code at the top or in the body of your JSP file. Copy and paste the following code to your file:

      <%@ page import="java.sql.*" %>

    • 3

      Click the "Save" button and open the JSP page in your browser. Running the file in your browser connects to the libraries, so you know that no syntax errors were added to the file.

Related Searches:

References

Comments

Related Ads

Featured