To use RapidSpell Web to spell check a web page in separate mode, create a page holding the
RapidSpellWeb Tag, then add the RapidSpellWebLauncher Tag to your existing page with the text element
you want checked, referencing the page you created with RapidSpellWeb in the RapidSpellWebPage
property.
Page containing the RapidSpellWeb Tag.
<%@ taglib uri="http://www.keyoti.com/" prefix="RapidSpellWeb" %>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>.....</style>
</HEAD>
<BODY ...>
<!-- Any HTML formatting can go here -->
<RapidSpellWeb:rapidSpellWeb
ignoreButtonStyle="...."
ignoreButtonOnMouseOver="...."
ignoreButtonOnMouseOut="...."
ignoreAllButtonStyle="...."
ignoreAllButtonOnMouseOver="...."
ignoreAllButtonOnMouseOut="...."
....
..Other button style definitions..
....
/>
</BODY>
</HTML>
Page containing the RapidSpellWebLauncher Tag
<%@ taglib uri="http://www.keyoti.com/" prefix="RapidSpellWeb" %>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<style>...</style>
</HEAD>
<BODY ...>
<%
if(request.getParameter("fMessage") == null){
%>
<p>This demo page opens the spell checker in a separate page.
<form action='RSWL-Separate.jsp' method='post' name='myForm'>
<input type='hidden' name='fMessage' value='complete'>
<% if(request.getParameter("RSCallBack") == null){ %>
<textarea name="sourceTextBox" wrap='true' cols='40'
rows='10'>This is some sample text with daliberate spelling errars</textarea>
<% } else { %>
<textarea name="sourceTextBox" wrap='true' cols='55'
rows='10'><%= request.getParameter("CorrectedText") %></textarea>
<% } %>
<br>
<!-- Creates a 'Check Spelling' button, TextComponentName = name of
textarea to check, CallBack = name of to put corrected text -->
<RapidSpellWeb:rapidSpellWebLauncher
rapidSpellWebPage="SpellCheckSeparatePage.jsp"
textComponentName="myForm.sourceTextBox"
callBack="RSWL-Separate.jsp"
separateHyphenWords="false"
mode="separate"
buttonStyle="font-family:'Tahoma,Arial'; border:1px solid
#b5bed6; background-color:#dddddd;"
buttonOnMouseOut="this.style.backgroundColor='#dddddd';this.style.borderColor='#b5bed6';"
buttonOnMouseOver="this.style.backgroundColor='#b5bed6';this.style.borderColor='#08246b';"
/>
<input type='submit' Style="font-family:'Tahoma,Arial'; border:1px
solid #b5bed6; background-color:#dddddd;"
onMouseOut="this.style.backgroundColor='#dddddd';this.style.borderColor='#b5bed6';"
onMouseOver="this.style.backgroundColor='#b5bed6';this.style.borderColor='#08246b';"
>
</form>
<%
} else {
%>
Text entered was:
"<%=request.getParameter("sourceTextBox")%>"
<%
}
%>
</BODY>
</HTML>
In these pages the style of the buttons has been set through the properties of the controls. Note that
the callBack is set to the URL of the page the user should be directed to after they have finished checking
the document, this page is called with the parameter CorrectedText which holds the text after the spell
check.