Knowledgebase Home Page  >  RapidSpell Web Java
Search the Knowledge Base
How do I use two license keys in one application?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=96&catId=45

Options

Print this page
Email this to a friend
If your application is accessible through two URLs (eg. a domain name or an IP) you will need 2 keys.  In order to work with two keys you need to modify the code in the popup page, so that the keys are switched depending on the URL used.
 
EG.
 
<%@ taglib uri="/WEB-INF/RapidSpellWeb.tld" prefix="RapidSpellWeb" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>Spell Check</title>
 
</head>
<body>
<center>
 
 
<%
String key;
if(request.getServerName().equals("www.domain.com"))
 key = "7............8";    //set the key for domain.com
else
 key = "3.....5";        //set the other key

%>
 
<RapidSpellWeb:rapidSpellWeb licenseKey="<%=key%>" />
 
 
</center>
</body>
</html>
 
 
NOTE: For v3, please use;

<%@ taglib uri="http://www.keyoti.com/" prefix="RapidSpellWeb" %>

instead of;

<%@ taglib uri="/WEB-INF/RapidSpellWeb.tld" prefix="RapidSpellWeb" %>

 

 


Related Questions:

Attachments:

No attachments were found.