<%@ page import="com.kesoftware.imu.*" %> <% String name = request.getParameter("name"); if (name == null || name.isEmpty()) throw new Exception("missing 'name' parameter"); Terms terms = new Terms(); terms.add("NamLast", name); Session imuSession = new Session("imu.mel.kesoftware.com", 40136); Module module = new Module("eparties", imuSession); module.findTerms(terms); String[] columns = { "NamFirst", "NamLast" }; ModuleFetchResult results = module.fetch("start", 0, -1, columns); long hits = results.getHits(); Map[] rows = results.getRows(); %> IMu Java API - A Simple Example

Number of matches: <% out.print(hits); %>

<% for (int i = 0; i < rows.length; i++) { Map row = rows[i]; long rowNum = row.getLong("rownum"); String first = row.getString("NamFirst"); String last = row.getString("NamLast"); %> <% } %>
<% out.print(rowNum); %> <% out.print(first); out.print(" "); out.print(last); %>