<%@ page import="uk.org.mafoo.wordbubbles.*" %> <%@ page import="java.io.File" %> <%@ page import="java.util.*" %>

Wordbubbles or Boggle solver

Input grid

<% File directory = new File(application.getRealPath("WEB-INF/dicts")); File[] fList = directory.listFiles(); boolean first = true; List filelist = new ArrayList(); for (File file : fList) { if(file.getName().matches("^[a-z\\-_]+$")) { filelist.add(file.getName()); } } Collections.sort(filelist); for(String file : filelist) { %> checked<%}%>><%= file %> <% first = false; } %>