%@ page import="java.util.*" %>
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
%>
<%!
private static final String[] htmlCode = new String[256];
static {
for (int i = 0; i < 10; i++) {
htmlCode[i] = "" + i + ";";
}
for (int i = 10; i < 32; i++) {
htmlCode[i] = "" + i + ";";
}
for (int i = 32; i < 128; i++) {
htmlCode[i] = String.valueOf((char)i);
}
// Special characters
htmlCode['\n'] = "
\n";
htmlCode['\"'] = """; // double quote
htmlCode['&'] = "&"; // ampersand
htmlCode['<'] = "<"; // lower than
htmlCode['>'] = ">"; // greater than
for (int i = 128; i < 256; i++) {
htmlCode[i] = "" + i + ";";
}
}
public String htmlEncode(String inputString){
int len = inputString.length();
char c;
StringBuffer outputBuffer = new StringBuffer();
for (int i = 0; i < len; i++) {
c = inputString.charAt(i);
// the Htmlcode of these characters are added to a StringBuffer one by one
try {
outputBuffer.append(htmlCode[c]);
}
catch(ArrayIndexOutOfBoundsException aioobe) {
outputBuffer.append(c);
}
}
return outputBuffer.toString();
}
%>
<%
Map errorTable = new Hashtable();
Boolean error = Boolean.FALSE;
Boolean newForm = ((request.getParameter("error")==null)?Boolean.TRUE:Boolean.FALSE);
String salutation = "";
String lastName = "";
String firstName = "";
String middleInitial = "";
String email = "";
String email2 = "";
String firmName = "";
String streetAddress = "";
String city = "";
String stateProvince = "";
String stateProvince2 = "";
String country = "";
String zipCode = "";
String telephone = "";
String fax = "";
String affil_tc1600 = "";
String affil_tc1700 = "";
String affil_tc2100 = "";
String affil_tc2600 = "";
String affil_tc2800 = "";
String affil_tc2900 = "";
String affil_tc3600 = "";
String affil_tc3700 = "";
String affil_tm = "";
String frequency = "";
String attorneyNumber = "";
String customerNumber = "";
if (newForm == Boolean.TRUE) {
session.invalidate();
}
else {
if (session.getAttribute("errorTable")!=null) {
errorTable = (Map)session.getAttribute("errorTable");
}
if (session.getAttribute("error")!=null) {
error = (Boolean)session.getAttribute("error");
}
salutation = ((session.getAttribute("salutation")==null)?"":(String)session.getAttribute("salutation"));
lastName = ((session.getAttribute("lastName")==null)?"":(String)session.getAttribute("lastName"));
firstName = ((session.getAttribute("firstName")==null)?"":(String)session.getAttribute("firstName"));
middleInitial = ((session.getAttribute("middleInitial")==null)?"":(String)session.getAttribute("middleInitial"));
email = ((session.getAttribute("email")==null)?"":(String)session.getAttribute("email"));
email2 = ((session.getAttribute("email2")==null)?"":(String)session.getAttribute("email2"));
firmName = ((session.getAttribute("firmName")==null)?"":(String)session.getAttribute("firmName"));
streetAddress = ((session.getAttribute("streetAddress")==null)?"":(String)session.getAttribute("streetAddress"));
city = ((session.getAttribute("city")==null)?"":(String)session.getAttribute("city"));
stateProvince = ((session.getAttribute("stateProvince")==null)?"":(String)session.getAttribute("stateProvince"));
stateProvince2 = ((session.getAttribute("stateProvince2")==null)?"":(String)session.getAttribute("stateProvince2"));
country = ((session.getAttribute("country")==null)?"":(String)session.getAttribute("country"));
zipCode = ((session.getAttribute("zipCode")==null)?"":(String)session.getAttribute("zipCode"));
telephone = ((session.getAttribute("telephone")==null)?"":(String)session.getAttribute("telephone"));
fax = ((session.getAttribute("fax")==null)?"":(String)session.getAttribute("fax"));
affil_tc1600 = ((session.getAttribute("affil_tc1600")==null)?"":(String)session.getAttribute("affil_tc1600"));
affil_tc1700 = ((session.getAttribute("affil_tc1700")==null)?"":(String)session.getAttribute("affil_tc1700"));
affil_tc2100 = ((session.getAttribute("affil_tc2100")==null)?"":(String)session.getAttribute("affil_tc2100"));
affil_tc2600 = ((session.getAttribute("affil_tc2600")==null)?"":(String)session.getAttribute("affil_tc2600"));
affil_tc2800 = ((session.getAttribute("affil_tc2800")==null)?"":(String)session.getAttribute("affil_tc2800"));
affil_tc2900 = ((session.getAttribute("affil_tc2900")==null)?"":(String)session.getAttribute("affil_tc2900"));
affil_tc3600 = ((session.getAttribute("affil_tc3600")==null)?"":(String)session.getAttribute("affil_tc3600"));
affil_tc3700 = ((session.getAttribute("affil_tc3700")==null)?"":(String)session.getAttribute("affil_tc3700"));
affil_tm = ((session.getAttribute("affil_tm")==null)?"":(String)session.getAttribute("affil_tm"));
frequency = ((session.getAttribute("frequency")==null)?"":(String)session.getAttribute("frequency"));
attorneyNumber = ((session.getAttribute("attorneyNumber")==null)?"":(String)session.getAttribute("attorneyNumber"));
customerNumber = ((session.getAttribute("customerNumber")==null)?"":(String)session.getAttribute("customerNumber"));
}
%>
|
|
||||
<%-- outer border--%>
<%-- end content--%> <%-- info section --%> <%-- Footer Begins --%>
|
USPTO OQMT Home | Quality & Performance Management | Training Programs |
HOME | INDEX | SEARCH | SYSTEM STATUS | BUSINESS CENTER | NEWS&NOTICES | CONTACT US | PRIVACY STATEMENT |