How to Transfer Parameter

hi:
I use the DhtmlxConnector for java,and I want to Transfer Parameter to the servlet
I use this function ,but not thread safe.so i want to know how to use it.
this is my work.

mygrid.loadXML(“01a_sql_basic_connector.do?under_id=1”);
var dp = new dataProcessor(“01a_sql_basic_connector.do”);
dp.init(mygrid);

and the servlet like this:

protected void configure() {

    Connection conn= ( new DataBaseConnection()).getConnection();  
      
    GridConnector c = new GridConnector(conn);  
    c.dynamic_loading(100);  
    if(under_id!=null){  
        c.render_sql("SELECT grid50000.item_id as ID , grid50000.item_nm ,grid50000.item_cd FROM grid50000 where id="+under_id,  
                "item_id(ID)","item_nm,item_cd");  
    }else{  
        c.render_sql("SELECT grid50000.item_id as ID , grid50000.item_nm ,grid50000.item_cd FROM grid50000",  
                "item_id(ID)","item_nm,item_cd");  
    }  

please give me a example thanks

In case of thread-safe connector it will be as


public class SimpleDataSource extends ThreadSafeConnectorServlet {

	@Override
	protected void configure(HttpServletRequest req, HttpServletResponse res) {
		Connection conn = ( new DataBaseConnection()).getConnection();

		GridConnectordata = new GridConnector(conn);
		data.servlet(req, res);
		data.render_sql("SELECT grid50000.item_id as ID , grid50000.item_nm ,grid50000.item_cd FROM grid50000 where id="+req.getParameter("under_id"), 
"item_id(ID)","item_nm,item_cd"); 
	}

}

thank you ,i will try it now!

where is the ThreadSafeConnectorServlet ,i can not find it.

Be sure to download the latest jar

dhtmlx.com/x/download/regula … va_dvl.zip