User Dictionary

Location and per user dictionaries

By default the user dictionary will be stored at ~/user-dictionary.txt (where ~/ means the web application root*). However this should ideally be changed to give each user their own dictionary.

Setting The Storage Directory Path

As a security measure, RapidSpell locks down user dictionary storage to locations specified in the application's web.xml file, and only allows files of type .txt to be used as user dictionaries.

1. Set a paramter called RapidSpellUserDictionaryDirs in web.xml to a comma delimited list of directories where you intend to store user dictionary files.

eg.

<?xml version="1.0" encoding="UTF-8"?>

<web-app ...>

    <context-param>
        <param-name>RapidSpellUserDictionaryDirs</param-name>
        <param-value>~/</param-value>
    </context-param>

....
</web-app>

This will mean that userDictionaryFile in the tags must be set to a file under ~/ (ie. web application root*).
It may be necessary to restart the app. server after changing the web.xml, for it to have effect.

2. User dictionaries must now be .txt files, so with the above setting a valid userDictionaryFile value is "~/somename.txt"


* Please note that in some server contexts (such as WAR files that are not 'exploded' on deployment) we may not be able to automatically resolve '~/' to the application root, in this case please set the param RapidSpellBaseDir.
<context-param>
        <param-name>RapidSpellBaseDir</param-name>
        <param-value>c:\path\to\app root\</param-value>
</context-param>

Disabling 'Add'