<%@ Language=Java%> <% this.request = request; this.response = response; this.out = out; ESI_DBRecs = new java.util.Vector(); session = request.getSession(true); %> <% this.GuestBookRecordset=(com.Macromedia.DbCursor.DBCursor)(request.getAttribute("GuestBookRecordset")); ESI_DBRecs.addElement(GuestBookRecordset); %> <% //GuestBookRecordset_JSPBeforeOpen()_Begin; //DRUMBEAT_BEGIN_INTERACTIONS //DRUMBEAT_BEGIN_ACTION_CONTRACT(3) if (JSPButtonClicked("AddEntryButton")) { if ("0".equals("0")) { GuestBookRecordset.bPreserveInputState = false; } else { GuestBookRecordset.bPreserveInputState = true; } GuestBookRecordset.SetAction("Insert"); } //DRUMBEAT_END_ACTION_CONTRACT //DRUMBEAT_BEGIN_ACTION_CONTRACT(4) if (JSPButtonClicked("AddEntryButton")) { String trunctext; int intSumLen = Integer.parseInt("70"); String reqtext = JSPGetRequestParam("CommentsEdit"); String texttotrunc = new String(reqtext); if (texttotrunc.length() > intSumLen) { trunctext = texttotrunc.substring(0,intSumLen); trunctext += " . . . "; } else { trunctext = texttotrunc; } GuestBookRecordset.AddBinding("ENTRYSUMMARY",trunctext,"VAL"); } //DRUMBEAT_END_ACTION_CONTRACT //DRUMBEAT_BEGIN_ACTION_CONTRACT(2) if (JSPButtonClicked("AddEntryButton")) { Date myDate = new Date(); Locale myLocale = new Locale("English", "US"); String strDate = java.text.DateFormat.getDateInstance(java.text.DateFormat.LONG, myLocale).format(myDate); GuestBookRecordset.AddBinding("SIGNINDATE", strDate, "VAL"); } //DRUMBEAT_END_ACTION_CONTRACT //DRUMBEAT_END_INTERACTIONS //GuestBookRecordset_JSPBeforeOpen()_End; %> <% GuestBookRecordset.Open(); GuestBookRecordset.ProcessAction(); %> <% //GuestBookRecordset_JSPServer()_Begin; //DRUMBEAT_BEGIN_INTERACTIONS //DRUMBEAT_BEGIN_ACTION_CONTRACT(1) if (JSPButtonClicked("AddEntryButton")) { if (GuestBookRecordset.IsSession()) { JSPRedirect("ThankYouForYourEntry.jsp"); } else { String Params = "ThankYouForYourEntry.jsp" + "?" + "GuestBookRecordset_Position=" + GuestBookRecordset.GetState(); Params = JSPURLEscapePercent(Params); Params = JSPURLEscapeSpaces(Params); JSPRedirect(Params); } } //DRUMBEAT_END_ACTION_CONTRACT //DRUMBEAT_END_INTERACTIONS //GuestBookRecordset_JSPServer()_End; %> Add New Entry
To submit your entry to our guest book, enter your name and any comments you wish in the boxes below. After you are complete, click on the 'Add This Entry' button at the bottom of the page.
NAME:
COMMENTS:
<% GuestBookRecordset.CloseAndRelease(); %>