<HTML>
<HEAD>
<TITLE>Main</TITLE>
</HEAD>
<BODY BGCOLOR="ffffff" >
<!-- BEGIN REMOVABLE SECTION -->
<!-- remove the following test output...-->
<BR>
<FONT COLOR="007700">
<B>This system has been generated with Gently.</B><BR>
<BR>
Java Server Page "Main"<BR>
<!-- END REMOVABLE SECTION -->
<%
try {
String methodKey = request.getParameter("selectedMethod");
if (methodKey == null) {
throw new Exception();
}
if (methodKey.equals("main")) {
%>
<!-- BEGIN REMOVABLE SECTION -->
<!-- remove the following test output...-->
Method "main" <BR>
<BR>
</FONT>
<HR NOSHADE>
<!-- END REMOVABLE SECTION -->
<%
// main() ////////////////////////////////////////
out.print("<BR>");
{
int id_;
// BEGIN OF PROTECTED REGION FOR HYPERLINK "inMain1"
// replace the following hyperlink's default values...
id_ = 0;
// END OF PROTECTED REGION FOR HYPERLINK "inMain1"
%>
inMain1:
<A HREF="http://localhost:8080/test/gently/nod/Help.jsp?selectedMethod=show&articleId=<%=id_%>">
<!-- replace the following linkname... -->
hyperlink show(<%=id_%>) to Help
</A><BR>
<%
}
out.print("<BR>");
{
int quantity_;
String note_;
boolean flag_;
String[] choice_;
String[] choice_label;
String[] selection_;
String[] selection_label;
String[] articles_;
String[] articles_label;
int[] counts_;
String[] counts_label;
int hiddeni_;
String[] hiddens_;
// BEGIN OF PROTECTED REGION FOR FORM "inMain2"
// replace the following code with custom code...
quantity_ = 0; // default value of a form's textfield...
note_ = "dummy"; // default value of a form's textarea...
flag_ = true; // default value of a form's checkbox field...
// default array and values of a form's radio button enumeration
// and default array and values for it's labels...
choice_ = new String[4];
choice_[0]="dummy";
choice_[1]="dummy";
choice_[2]="dummy";
choice_[3]="dummy";
choice_label = new String[4];
choice_label[0] = "choice";
choice_label[1] = "choice";
choice_label[2] = "choice";
choice_label[3] = "choice";
// default array and values of a form's combobox enumeration
// and default array and values for it's entries...
selection_ = new String[4];
selection_[0]="dummy";
selection_[1]="dummy";
selection_[2]="dummy";
selection_[3]="dummy";
selection_label = new String[4];
selection_label[0] = "label";
selection_label[1] = "label";
selection_label[2] = "label";
selection_label[3] = "label";
// default array and values of a form's multiple select
// and default array and values for it's entries...
articles_ = new String[4];
articles_[0]="dummy";
articles_[1]="dummy";
articles_[2]="dummy";
articles_[3]="dummy";
articles_label = new String[4];
articles_label[0] = "label";
articles_label[1] = "label";
articles_label[2] = "label";
articles_label[3] = "label";
// default array and values of a form's multiple select
// and default array and values for it's entries...
counts_ = new int[4];
counts_[0]=0;
counts_[1]=0;
counts_[2]=0;
counts_[3]=0;
counts_label = new String[4];
counts_label[0] = "label";
counts_label[1] = "label";
counts_label[2] = "label";
counts_label[3] = "label";
hiddeni_ = 0; // make sure, that this hidden parameter is assigned a value...
// default array and values of hidden parameters
hiddens_ = new String[4];
hiddens_[0]="dummy";
hiddens_[1]="dummy";
hiddens_[2]="dummy";
hiddens_[3]="dummy";
// END OF PROTECTED REGION FOR FORM "inMain2"
%>
<FORM ACTION="http://localhost:8080/test/gently/nod/Help.jsp" method="GET">
<INPUT TYPE="HIDDEN" NAME="selectedMethod" VALUE="push">
<INPUT TYPE="HIDDEN" NAME="i2" VALUE="<%=hiddeni_%>" >
<%
for (int _i=0; _i<hiddens_.length; _i++){
%><INPUT TYPE="HIDDEN" NAME="ss2" VALUE="<%=hiddens_[_i]%>" ><%
}
%>
<CENTER>
<TABLE BGCOLOR="dddddd" CELLSPACING="0" CELLPADDING="10" BORDER="0" >
<TR>
<TD COLSPAN="2">
<CENTER>
<B><FONT COLOR="007700">Form "inMain2"</FONT></B>
</CENTER>
</TD>
</TR>
<TR valign=MIDDLE>
<TD align=right>
quantity: <!-- customize the label of this text field... -->
</TD>
<TD align=left>
<INPUT TYPE="TEXT" NAME="i1" VALUE="<%=quantity_%>" SIZE="20">
</TD>
</TR>
<TR valign=MIDDLE>
<TD align=right>
note: <!-- customize the label of this text field... -->
</TD>
<TD align=left>
<TEXTAREA NAME="s1" COLS="50" ROWS="10"><%=note_%>
</TEXTAREA>
</TD>
</TR>
<TR valign=MIDDLE>
<TD align=right>
flag: <!-- customize the label of this text field... -->
</TD>
<TD align=left>
<INPUT TYPE="CHECKBOX" NAME="b" VALUE="<%=flag_%>" SIZE="20">
</TD>
</TR>
<TR valign=MIDDLE>
<TD align=right>
choice: <!-- customize the label of this text field... -->
</TD>
<TD align=left>
<%
for (int _i=0; _i<choice_.length; _i++){
%><INPUT TYPE="RADIO" NAME="s2" VALUE="<%=choice_[_i]%>" <% if (_i==0) { %>CHECKED<% }%> > <%=_i+1%>. <%=choice_label[_i]%><BR><%
}%>
</TD>
</TR>
<TR valign=MIDDLE>
<TD align=right>
selection: <!-- customize the label of this text field... -->
</TD>
<TD align=left>
<SELECT NAME="s3">
<%
for (int _i=0; _i<selection_.length; _i++){
%><OPTION VALUE="<%=selection_[_i]%>" > <%=_i+1%>. <%=selection_label[_i]%><%
}
%>
</SELECT>
</TD>
</TR>
<TR valign=MIDDLE>
<TD align=right>
articles: <!-- customize the label of this text field... -->
</TD>
<TD align=left>
<SELECT NAME="ss1" MULTIPLE SIZE="4" >
<%
for (int _i=0; _i<articles_.length; _i++){
%><OPTION VALUE="<%=articles_[_i]%>" SELECTED > <%=_i+1%>. <%=articles_label[_i]%><%
}
%>
</SELECT>
</TD>
</TR>
<TR valign=MIDDLE>
<TD align=right>
counts: <!-- customize the label of this text field... -->
</TD>
<TD align=left>
<SELECT NAME="is" MULTIPLE SIZE="4" >
<%
for (int _i=0; _i<counts_.length; _i++){
%><OPTION VALUE="<%=counts_[_i]%>" SELECTED > <%=_i+1%>. <%=counts_label[_i]%><%
}
%>
</SELECT>
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<CENTER>
<INPUT TYPE="SUBMIT">
</CENTER>
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<BR>
<FONT COLOR="007700">
hidden parameter "i2" : <%=hiddeni_%> <BR>
hidden parameter "ss2" : [
<%
for (int _i=0; _i<hiddens_.length; _i++){
if (_i != 0) {
out.print(",");
}
out.print(hiddens_[_i]);
}
%> ] <BR>
</FONT>
</TD>
</TR>
</TABLE>
</CENTER>
</FORM>
<%
}
} else {
throw new Exception();
}
} catch (Exception _e) {
%>
<font color="ff0000"> The Gently generated system has been used in a wrong way.</font>
<%
}
%>
</body>
</html>