%@ page language="java"
import="java.sql.*, java.io.*, java.util.*, users.databases.*"
%>
<%!
/*** function FIRST-LETTER-CAP transform the first letter of every word to upper case and the rest to lower case ***/
String firstLetterCap (String strSource) {
String newString = strSource.trim();
if (newString.equals("")) {
} else {
newString = newString.toLowerCase();
char[] arrNewString = newString.toCharArray();
arrNewString[0] = Character.toUpperCase(arrNewString[0]);
byte pos = 0;
while (pos != newString.length()-1) {
if (newString.charAt(pos) == ' ' || newString.charAt(pos) == '.' || newString.charAt(pos) == ',') {
arrNewString[pos+1] = Character.toUpperCase(arrNewString[pos+1]);
}
pos++;
}
newString = String.copyValueOf(arrNewString);
}
return newString;
}
%>
<%
/**** VARIABLE DECLARATION and INITIALIZATION *****/
boolean withError = false;
String strWhatDB = request.getParameter("whatDB");
String strUserLogName = request.getParameter("userLogName");
int intSType = Integer.parseInt(request.getParameter("stype"));
String strCompanyName = request.getParameter("userCoName");
String strUserPosition = request.getParameter("userPosition");
String strFirstTimer = request.getParameter("userFirstTime");
/***** MAIN *****/
strCompanyName = strCompanyName.toUpperCase();
strCompanyName = strCompanyName.trim();
strUserPosition = strUserPosition.trim();
strUserPosition = firstLetterCap(strUserPosition);
if (intSType==0) {
withError = true;
} else if (strCompanyName.equals("")) {
withError = true;
} else if (strUserPosition.equals("")) {
withError = true;
}
%>
Company Name and User Position
| |
|
|
|
|

|
|

|
|
|
<% if (withError) { %>
<% if (strFirstTimer.equals("true")) { %>
Welcome back <%= strUserLogName %>!
Please fill up the following:
<% } else { %>
An INVALID ENTRY was found in your registration form. You might had left a field BLANK or EMPTY. Please fill up all entries.
<% } %>
<% } else { %>
<% } %>
|
|
|
|
Copyright © 2001-2003 by Grafikoncepts and Designs, Inc.
A joint project of Grafikoncepts and Designs, Inc. and Digital Management and Solutions, Inc.
Layout by MVMG (VPIT), Digital Management and Solutions, Inc.
|