<%@ page language="java" contentType="text/html" import="myDB.*" %> Create a new Contact <% ContactTableInteraction dti = new ContactTableInteraction(); String result = dti.insertTuple( contactBean, false ); // insertTuple of DeptTableInteraction will returns a non-empty // string only if something goes wrong. if( result != null ) { contactBean.setErrorMsg( result ); %> <% } %>