Having problem to load data from database to my jsp page.


I’m new to jsp and dhtmlx grid.

When I try the way that mention in this site (docs.dhtmlx.com/doku.php?id=dhtm … _rendering), I can successful to load all the data from database to the grid in my jsp page.

So, I want to try to update the data from the grid table to database, I try to use the connector.js. Unfortunately, it cannot work. Here is my code and the error.

<%@ page language=“java” contentType=“text/html; charset=ISO-8859-1” pageEncoding=“ISO-8859-1”%>

Contact Management

<jsp:useBean id=“db” scope=“request” class=“db.dbconnection” />
<%@ page import=“java.sql."%>
<%@ page import="java.io.
<%@ page import=“com.dhtmlx.connector.*”%>
Connection conn = db.connect();
GridConnector c = new GridConnector(conn);

Here is the error messages:
at com.dhtmlx.connector.BaseConnector.parse_request(BaseConnector.java:351)
at com.dhtmlx.connector.GridConnector.parse_request(GridConnector.java:56)
at com.dhtmlx.connector.BaseConnector.render(BaseConnector.java:287)
at com.dhtmlx.connector.BaseConnector.render_table(BaseConnector.java:210)
at com.dhtmlx.connector.BaseConnector.render_table(BaseConnector.java:178)

I did included all the required files and classes. I hope that anyone can help me, so that I can proceed for further learning. Thank you so much.

You should try to use dhtmlxDataProcessor component:
docs.dhtmlx.com/doku.php?id=dhtm … cessor:toc

ok… thank you so much…