<%@page language="java"%> <%@page import="java.io.*"%> <%@page import="java.util.Enumeration"%> <%@page import="java.net.URLDecoder"%> <%@page import="java.net.URLEncoder"%> <%@page import="org.apache.commons.lang.StringEscapeUtils"%> <% // spellchecker.jsp // for ckeditor plugin aspell // http://cksource.com/forums/viewtopic.php?f=11&t=15893 //convert from php to jsp by windu gata 10 October 2007 // http://cksource.com/forums/viewtopic.php?f=5&t=7200 // heavily modified by John J. Allison 21 Oct 2011 // - working input decoding and entity conversion // - use all input parameters instead of just first for complete spell checking // - tokenize the aspell input like the perl version does // - bit more robust //The following variables values must reflect your installation needs. //String aspell_prog = "C:\\Program Files\\Aspell\\bin\\aspell.exe"; //windows String aspell_prog = "/usr/bin/aspell"; //linux //String aspell_prog = "/opt/local/bin/aspell"; //apple String aspell_opts = "-a --lang=en_US --encoding=utf-8 -H --rem-sgml-check=alt"; String spellercss = "../spellerStyle.css"; String word_win_src = "../wordWindow.js"; %>