<HTML>
<HEAD>
<TITLE>Help</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 "Help"<BR>
<!-- END REMOVABLE SECTION -->
<%
try {
String methodKey = request.getParameter("selectedMethod");
if (methodKey == null) {
throw new Exception();
}
if (methodKey.equals("show")) {
int articleId;
try {
articleId = new Integer(request.getParameter("articleId")).intValue();
} catch (IllegalArgumentException _e){
articleId = 0;
%>
<FONT COLOR="FF0000">
<B> Error: could not convert "<%=request.getParameter("articleId")%>" to int variable "articleId" ! </B>
</FONT><BR>
<%
}
%>
<!-- BEGIN REMOVABLE SECTION -->
<!-- remove the following test output...-->
Method "show" <BR>
<BR>
Value of formal parameter "int articleId" : <%=articleId%><BR>
<BR>
</FONT>
<HR NOSHADE>
<!-- END REMOVABLE SECTION -->
<%
// show(int articleId) ////////////////////////////////////////
out.print("<BR>");
{
%>
inShow:
<A HREF="http://localhost:8080/test/gently/nod/Main.jsp?selectedMethod=main">
<!-- replace the following linkname... -->
hyperlink main() to Main
</A><BR>
<%
}
} else
if (methodKey.equals("push")) {
int i1;
try {
i1 = new Integer(request.getParameter("i1")).intValue();
} catch (IllegalArgumentException _e){
i1 = 0;
%>
<FONT COLOR="FF0000">
<B> Error: could not convert "<%=request.getParameter("i1")%>" to int variable "i1" ! </B>
</FONT><BR>
<%
}
String s1;
try {
s1 = new String(request.getParameter("s1"));
} catch (IllegalArgumentException _e){
s1 = "dummy";
%>
<FONT COLOR="FF0000">
<B> Error: could not convert "<%=request.getParameter("s1")%>" to String variable "s1" ! </B>
</FONT><BR>
<%
}
boolean b = (request.getParameter("b") != null);
String s2;
try {
s2 = new String(request.getParameter("s2"));
} catch (IllegalArgumentException _e){
s2 = "dummy";
%>
<FONT COLOR="FF0000">
<B> Error: could not convert "<%=request.getParameter("s2")%>" to String variable "s2" ! </B>
</FONT><BR>
<%
}
String s3;
try {
s3 = new String(request.getParameter("s3"));
} catch (IllegalArgumentException _e){
s3 = "dummy";
%>
<FONT COLOR="FF0000">
<B> Error: could not convert "<%=request.getParameter("s3")%>" to String variable "s3" ! </B>
</FONT><BR>
<%
}
String[] ss1;
ss1 = new String[request.getParameterValues("ss1").length];
for (int _i=0; _i<request.getParameterValues("ss1").length; _i++) {
try {
ss1[_i] = new String(request.getParameterValues("ss1")[_i]);
} catch (IllegalArgumentException _e){
ss1[_i] ="dummy";
%>
<FONT COLOR="FF0000">
<B>Error: could not convert "<%=(request.getParameterValues("ss1")[_i])%>" to the <%=_i%>. field of String array "ss1" ! </B>
</FONT><BR>
<%
}
}
int[] is;
is = new int[request.getParameterValues("is").length];
for (int _i=0; _i<request.getParameterValues("is").length; _i++) {
try {
is[_i] = new Integer(request.getParameterValues("is")[_i]).intValue();
} catch (IllegalArgumentException _e){
is[_i] =0;
%>
<FONT COLOR="FF0000">
<B>Error: could not convert "<%=(request.getParameterValues("is")[_i])%>" to the <%=_i%>. field of int array "is" ! </B>
</FONT><BR>
<%
}
}
int i2;
try {
i2 = new Integer(request.getParameter("i2")).intValue();
} catch (IllegalArgumentException _e){
i2 = 0;
%>
<FONT COLOR="FF0000">
<B> Error: could not convert "<%=request.getParameter("i2")%>" to int variable "i2" ! </B>
</FONT><BR>
<%
}
String[] ss2;
ss2 = new String[request.getParameterValues("ss2").length];
for (int _i=0; _i<request.getParameterValues("ss2").length; _i++) {
try {
ss2[_i] = new String(request.getParameterValues("ss2")[_i]);
} catch (IllegalArgumentException _e){
ss2[_i] ="dummy";
%>
<FONT COLOR="FF0000">
<B>Error: could not convert "<%=(request.getParameterValues("ss2")[_i])%>" to the <%=_i%>. field of String array "ss2" ! </B>
</FONT><BR>
<%
}
}
%>
<!-- BEGIN REMOVABLE SECTION -->
<!-- remove the following test output...-->
Method "push" <BR>
<BR>
Value of formal parameter "int i1" : <%=i1%><BR>
Value of formal parameter "String s1" : <%=s1%><BR>
Value of formal parameter "boolean b" : <%=b%><BR>
Value of formal parameter "String s2" : <%=s2%><BR>
Value of formal parameter "String s3" : <%=s3%><BR>
Value of formal parameter "String[] ss1" :
<%
for (int _i=0; _i<ss1.length; _i++){
if (_i != 0) {
out.print(",");
}
out.print(ss1[_i]);
}
%>
<BR>
Value of formal parameter "int[] is" :
<%
for (int _i=0; _i<is.length; _i++){
if (_i != 0) {
out.print(",");
}
out.print(is[_i]);
}
%>
<BR>
Value of formal parameter "int i2" : <%=i2%><BR>
Value of formal parameter "String[] ss2" :
<%
for (int _i=0; _i<ss2.length; _i++){
if (_i != 0) {
out.print(",");
}
out.print(ss2[_i]);
}
%>
<BR>
<BR>
</FONT>
<HR NOSHADE>
<!-- END REMOVABLE SECTION -->
<%
// push(int i1, String s1, boolean b, String s2, String s3, String[] ss1, int[] is, int i2, String[] ss2) ////////////////////////////////////////
out.print("<BR>");
{
// customize the code to decide, if the following
// "redirect" is activated...
if (false) {
pageContext.forward("Main.jsp?selectedMethod=main");
}
%>
<FONT COLOR="007700">
possible redirect to main() in Main
</FONT>
<%
}
} else
if (methodKey.equals("search")) {
String query;
try {
query = new String(request.getParameter("query"));
} catch (IllegalArgumentException _e){
query = "dummy";
%>
<FONT COLOR="FF0000">
<B> Error: could not convert "<%=request.getParameter("query")%>" to String variable "query" ! </B>
</FONT><BR>
<%
}
%>
<!-- BEGIN REMOVABLE SECTION -->
<!-- remove the following test output...-->
Method "search" <BR>
<BR>
Value of formal parameter "String query" : <%=query%><BR>
<BR>
</FONT>
<HR NOSHADE>
<!-- END REMOVABLE SECTION -->
<%
// search(String query) ////////////////////////////////////////
out.print("<BR>");
{
%>
inSearch:
<A HREF="http://localhost:8080/test/gently/nod/Main.jsp?selectedMethod=main">
<!-- replace the following linkname... -->
hyperlink main() to Main
</A><BR>
<%
}
} else {
throw new Exception();
}
} catch (Exception _e) {
%>
<font color="ff0000"> The Gently generated system has been used in a wrong way.</font>
<%
}
%>
</body>
</html>