|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ccg.util.Form
public class Form
Class to help with the generation of HTML forms. This class is used to help one build HTML form output. It contains a bunch of static methods which can be used to help construct forms.
Most of the static methods come in two flavors. The appendXXX() methods are the more efficient method where HTML is constructed by appending strings to a java.lang.StringBuffer object. The formatXXX() methods are less efficient, but sometimes more convient to use. They construct a StringBuffer object, invoke the corresponding appendXXX() method and return the results as a String.
The following method sample demonstrates how one might use these
methods to construct a simple HTML input form:
static public void main(String args[]) {
StringBuffer sb = new StringBuffer(4000);
Form.appendStart(sb,"/servlet/Hello",true);
sb.append("Name:");
Form.appendTextField(sb,"name","Paul",20,40);
sb.append("Password:");
Form.appendPasswordField(sb,"name",null,12,12);
Form.appendHiddenField(sb,"hide_this","toadflax");
String[] colors = { "brown", "green", "blue", "yellow", "gray" };
boolean[] selected = { false, true, false, true, false };
sb.append("Eye Color:");
Form.appendSelectSingle(sb,"eye_color",3,colors,null,-1);
sb.append("Desired Flag Colors:");
Form.appendSelectMultiple(sb,"stripes",3,colors,null,selected);
sb.append("How Many:");
Form.appendNumberField(sb,"count",null,null,6);
sb.append("Male:");
Form.appendBooleanField(sb,"gender",true,null);
Form.appendSubmitButton(sb,"action","Update");
Form.appendSubmitButton(sb,"action","Logout");
Form.appendSubmitButton(sb,null,null);
Form.appendResetButton(sb,null);
Form.appendEnd(sb);
System.out.println(sb);
}
TableFormat| Constructor Summary | |
|---|---|
Form()
|
|
| Method Summary | |
|---|---|
static boolean |
addSubmitPair(StringBuffer dst,
boolean first,
String name,
String val)
Appends a name/value pair encoded to the end of a URL. |
static void |
appendBooleanField(StringBuffer sb,
String name,
boolean val)
Adds a "boolean" checkbox button to the form output. |
static void |
appendEnd(StringBuffer sb)
Ends a HTML form. |
static void |
appendHiddenField(StringBuffer sb,
String name,
String val)
Adds a hidden name/value pair entry field to the StringBuffer. |
static void |
appendNumberField(StringBuffer sb,
String name,
Number val,
NumberFormat nf,
int vis_length)
Adds a number text field to the StringBuffer. |
static void |
appendPasswordField(StringBuffer sb,
String name,
String val,
int vis_length,
int max_length)
Adds a password entry field to the StringBuffer. |
static void |
appendResetButton(StringBuffer sb,
String val)
Adds a "reset" button to the form output. |
static void |
appendSelectChoice(StringBuffer sb,
String name,
String display,
boolean selected)
Adds a choice to a selection list presented to the user. |
static void |
appendSelectEnd(StringBuffer sb)
Adds the end of a selection list entry to the StringBuffer. |
static void |
appendSelectMultiple(StringBuffer sb,
String name,
int vis_size,
String[] choice_names,
String[] choice_disp,
boolean[] selected)
Create a HTML form selection list (for a multiple choice selection). |
static void |
appendSelectSingle(StringBuffer sb,
String name,
int vis_size,
String[] choice_names,
String[] choice_disp,
int selected)
Create a HTML form selection list (for a one choice selection). |
static void |
appendSelectStart(StringBuffer sb,
String name,
int vis_size,
boolean multiple_ok)
Adds the start of a selection list entry to the StringBuffer. |
static void |
appendStart(StringBuffer sb,
String url,
boolean post)
Starts a HTML form. |
static void |
appendSubmitButton(StringBuffer sb,
String name,
String val)
Adds a "submit" button to the form output. |
static void |
appendTextField(StringBuffer sb,
String name,
String val,
int vis_length,
int max_length)
Adds a input text field to the StringBuffer. |
static void |
encodeSubmitParam(StringBuffer dst,
String from)
Appends the "escaped/encoded" form submission parameters to the end of a string. |
static String |
formatBooleanField(String name,
boolean val)
Create a "boolean" checkbox button to the form output. |
static String |
formatEnd()
Ends a HTML form. |
static String |
formatHiddenField(String name,
String val)
Adds a hidden name/value pair entry field to the StringBuffer. |
static String |
formatNumberField(String name,
Number val,
NumberFormat nf,
int vis_length)
Get the output of appendNumberField(java.lang.StringBuffer, java.lang.String, java.lang.Number, java.text.NumberFormat, int) as a String. |
static String |
formatPasswordField(String name,
String val,
int vis_length,
int max_length)
Get a string representation of a HTML form password field. |
static String |
formatResetButton(String val)
Adds a "reset" button to the form output. |
static String |
formatSelectMultiple(String name,
int vis_size,
String[] choice_names,
String[] choice_disp,
boolean[] selected)
Create a HTML form selection list (for a multiple choice selection). |
static String |
formatSelectSingle(String name,
int vis_size,
String[] choice_names,
String[] choice_disp,
int selected)
Create a HTML form selection list (for a one choice selection). |
static String |
formatStart(String url,
boolean post)
Starts a HTML form. |
static String |
formatSubmitButton(String name,
String val)
Generates a "submit" button for the form output. |
static String |
formatTextField(String name,
String val,
int vis_length,
int max_length)
Get a string representation of a HTML form input text field. |
static void |
main(String[] args)
Simple Form class test. |
static boolean |
parseBooleanField(String val)
Parse boolean value entered in a boolean input field. |
static Number |
parseNumberField(String val,
NumberFormat nf)
Parse value entered in a number input field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Form()
| Method Detail |
|---|
public static void appendStart(StringBuffer sb,
String url,
boolean post)
sb - StringBuffer to append the results to.url - URL to invoke when/if the user presses a "Submit" button.post - Boolean flag indicating how the form data should be sent to
the server. If set to true, then the data will be posted (not
in the URL). If set to false, the data will be appended to the
URL.formatStart(java.lang.String, boolean)
public static String formatStart(String url,
boolean post)
url - URL to invoke when/if the user presses a "Submit" button.post - Boolean flag indicating how the form data should be sent to
the server. If set to true, then the data will be posted (not
in the URL). If set to false, the data will be appended to the
URL.
appendStart(java.lang.StringBuffer, java.lang.String, boolean)public static void appendEnd(StringBuffer sb)
appendStart(java.lang.StringBuffer, java.lang.String, boolean) (and one or more input
fields).
formatEnd()public static String formatEnd()
appendStart(java.lang.StringBuffer, java.lang.String, boolean) (and one or more input
fields).
sb - StringBuffer to append the results to.appendEnd(java.lang.StringBuffer)
public static void appendResetButton(StringBuffer sb,
String val)
sb - StringBuffer to append the results to.val - Optional label to display for the reset button. If set to null
- then the browser will provide one.formatResetButton(java.lang.String)public static String formatResetButton(String val)
val - Optional label to display for the reset button. If set to null
- then the browser will provide one.
appendResetButton(java.lang.StringBuffer, java.lang.String)
public static void appendSubmitButton(StringBuffer sb,
String name,
String val)
appendStart(java.lang.StringBuffer, java.lang.String, boolean)). This typically involves submitting all of
the forms input fields to the URL associated with the form.
sb - StringBuffer to append the results to.name - Set this to a non-null value if you want your form processing
back-end to be able to determine what button was pressed. The
user will not see this information, but a form processor (such
as a Java servlet) will be able to request a value of this
name and retrieve the associated "val" to determine which
submit button the user pressed.val - Optional label to display for the button. You can leave this
set to null, but if you have more than one submission button
on your form, it is recommended to specify a value.formatSubmitButton(java.lang.String, java.lang.String)
public static String formatSubmitButton(String name,
String val)
appendStart(java.lang.StringBuffer, java.lang.String, boolean)). This typically involves submitting all
of the forms input fields to the URL associated with the form.
name - Set this to a non-null value if you want your form processing
back-end to be able to determine what button was pressed. The
user will not see this information, but a form processor (such
as a Java servlet) will be able to request a value of this
name and retrieve the associated "val" to determine which
submit button the user pressed.val - Optional label to display for the button. You can leave this
set to null, but if you have more than one submission button
on your form, it is recommended to specify a value.appendSubmitButton(java.lang.StringBuffer, java.lang.String, java.lang.String)
public static void appendTextField(StringBuffer sb,
String name,
String val,
int vis_length,
int max_length)
sb - StringBuffer to append the results to.name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).val - Optional initial value for the field (null is OK - in which
case no defualt value will be displayed)vis_length - Number of characters visible to user using the form (set to -1
if you don't care - lets HTML decide).max_length - Maximum length of characters user may enter (set to -1 if you
don't want to specify a limit).formatTextField(java.lang.String, java.lang.String, int, int)
public static String formatTextField(String name,
String val,
int vis_length,
int max_length)
name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).val - Optional initial value for the field (null is OK - in which
case no defualt value will be displayed)vis_length - Number of characters visible to user using the form (set to -1
if you don't care - lets HTML decide).max_length - Maximum length of characters user may enter (set to -1 if you
don't want to specify a limit).
appendTextField(java.lang.StringBuffer, java.lang.String, java.lang.String, int, int)
public static void appendNumberField(StringBuffer sb,
String name,
Number val,
NumberFormat nf,
int vis_length)
parseNumberField(java.lang.String, java.text.NumberFormat) method to extract the
results of the user's edits.
sb - StringBuffer to append the results to.name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).val - Optional initial value for the field (null is OK - in which
case no default value will be displayed)nf - NumberFormat to use for formatting the value. If it is null,
then NumberFormat.getInstance() will be used for the default
formatter. (note, this is only used if 'val' is non-null)vis_length - Number of characters visible to user using the form (set to -1
if you don't care - lets HTML decide).formatNumberField(java.lang.String, java.lang.Number, java.text.NumberFormat, int),
parseNumberField(java.lang.String, java.text.NumberFormat)
public static String formatNumberField(String name,
Number val,
NumberFormat nf,
int vis_length)
appendNumberField(java.lang.StringBuffer, java.lang.String, java.lang.Number, java.text.NumberFormat, int) as a String.
This inserts the form HTML for a input text field which should be
only be used for numeric value fields (a single line of user
edittable text). You may control the number of characters
visible, and wheter a value is displayed and how it will be
formatted. Use the parseNumberField(java.lang.String, java.text.NumberFormat) method to extract the
results of the user's edits.
name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).val - Optional initial value for the field (null is OK - in which
case no default value will be displayed)nf - NumberFormat to use for formatting the value. If it is null,
then NumberFormat.getInstance() will be used for the default
formatter. (note, this is only used if 'val' is non-null)vis_length - Number of characters visible to user using the form (set to -1
if you don't care - lets HTML decide).
appendNumberField(java.lang.StringBuffer, java.lang.String, java.lang.Number, java.text.NumberFormat, int),
parseNumberField(java.lang.String, java.text.NumberFormat)
public static Number parseNumberField(String val,
NumberFormat nf)
formatNumberField(java.lang.String, java.lang.Number, java.text.NumberFormat, int). It
attempts to parse a users input as a standard java Number
object. This method does not throw any exceptions, but will
return null the "value" passed does not contain a valid number.
val - String object to try to parse number from (its OK to pass null
- but you'll get null back).nf - java.text.NumberFormat to use to try and extract the number.
formatNumberField(java.lang.String, java.lang.Number, java.text.NumberFormat, int)
public static void appendBooleanField(StringBuffer sb,
String name,
boolean val)
sb - StringBuffer to append the results to.name - Set this to a non-null value if you want your form processing
back-end to be able to determine if the checkbox was actually
checked or unchecked by the user. The user will not see this
information, but a form processor (such as a Java servlet)
will be able to request a value of this name and retrieve the
associated "val" to determine if the checkbox was checked.val - Initial state of the checkbox. Set to true if checkbox should
initially be displayed as "checked" (true state).formatBooleanField(java.lang.String, boolean),
parseBooleanField(java.lang.String)
public static String formatBooleanField(String name,
boolean val)
sb - StringBuffer to append the results to.name - Set this to a non-null value if you want your form processing
back-end to be able to determine if the checkbox was actually
checked or unchecked by the user. The user will not see this
information, but a form processor (such as a Java servlet)
will be able to request a value of this name and retrieve the
associated "val" to determine if the checkbox was checked.val - Initial state of the checkbox. Set to true if checkbox should
initially be displayed as "checked" (true state).appendBooleanField(java.lang.StringBuffer, java.lang.String, boolean)public static boolean parseBooleanField(String val)
appendBooleanField(java.lang.StringBuffer, java.lang.String, boolean). You
can use it to process the users submitted data. It attempts to
the submitted form data as a standard boolean.
val - String object to try to parse number from (its OK to pass null
- this is expected if the user did not set the boolean choice to true).
appendBooleanField(java.lang.StringBuffer, java.lang.String, boolean),
formatBooleanField(java.lang.String, boolean)
public static void appendPasswordField(StringBuffer sb,
String name,
String val,
int vis_length,
int max_length)
sb - StringBuffer to append the results to.name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).val - Optional initial value for the field (null is OK - in which
case no defualt value will be displayed)vis_length - Number of characters visible to user using the form (set to -1
if you don't care - lets HTML decide).max_length - Maximum length of characters user may enter (set to -1 if you
don't want to specify a limit).formatPasswordField(java.lang.String, java.lang.String, int, int)
public static String formatPasswordField(String name,
String val,
int vis_length,
int max_length)
name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).val - Optional initial value for the field (null is OK - in which
case no defualt value will be displayed)vis_length - Number of characters visible to user using the form (set to -1
if you don't care - lets HTML decide).max_length - Maximum length of characters user may enter (set to -1 if you
don't want to specify a limit).
appendTextField(java.lang.StringBuffer, java.lang.String, java.lang.String, int, int)
public static void appendHiddenField(StringBuffer sb,
String name,
String val)
sb - StringBuffer to append the results to.name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).val - Value for the field. If set to null, then the value "true"
will be used (indicating the field was set).formatHiddenField(java.lang.String, java.lang.String)
public static String formatHiddenField(String name,
String val)
sb - StringBuffer to append the results to.name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).val - Value for the field. If set to null, then the value "true"
will be used (indicating the field was set).
appendHiddenField(java.lang.StringBuffer, java.lang.String, java.lang.String)
public static void appendSelectStart(StringBuffer sb,
String name,
int vis_size,
boolean multiple_ok)
After invoking this method, the appendSelectChoice(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean)
should be invoked 1 or more times followed by a single invocation
of appendSelectEnd(java.lang.StringBuffer).
sb - StringBuffer to append the results to.name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).vis_size - Controls how much is visible to the user (set to 0 to omit and
go with defualt). This may control whether the browser
displays a pick list button, or a scrolling window choice box
of this many rows - I'm not sure.multiple_ok - If its OK for the user to select more than one item or not.appendSelectChoice(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean),
appendSelectEnd(java.lang.StringBuffer)public static void appendSelectEnd(StringBuffer sb)
appendSelectChoice(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean) it ends the
selection box.
sb - StringBuffer to append the results to.appendSelectChoice(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean),
appendSelectEnd(java.lang.StringBuffer)
public static void appendSelectChoice(StringBuffer sb,
String name,
String display,
boolean selected)
sb - StringBuffer to append the results to.name - Name for the selection field. This is not visible to the end user
but is used to reference the data later (must not be null).display - This is what should be displayed to the user for the
particular choice. You can pass null, in which case the 'name'
value will be displayed.selected - Set to true if this choice is currently selected.appendSelectStart(java.lang.StringBuffer, java.lang.String, int, boolean),
appendSelectEnd(java.lang.StringBuffer)
public static void appendSelectSingle(StringBuffer sb,
String name,
int vis_size,
String[] choice_names,
String[] choice_disp,
int selected)
appendSelectStart(java.lang.StringBuffer, java.lang.String, int, boolean), appendSelectChoice(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean) and appendSelectEnd(java.lang.StringBuffer) to build a
single choice selection list. This isn't as flexible and building
the parts by yourself, but it is convienent.
sb - StringBuffer to append the results to.name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).vis_size - Controls how much is visible to the user (set to 0 to omit and
go with default). This may control whether the browser
displays a pick list button, or a scrolling window choice box
of this many rows - I'm not sure.choice_names - Array of strings which identify the choice names for each of
the choice items. Choice names are typically not displayed to
the user, but used by the back end processor of the form when
looking at what the user selected.choice_disp - Array of strings (must be exactly the same length as
choice_names, or null) which is the set of choices to be
displayed to the user (this is what the user sees when making
choices). If null, then choice_names will be used.selected - Which item is currently selected. Set to -1 if you don't want
anything marked as selected by default. Otherwise, make sure
the value is in the range of [0,choice_names.length-1].formatSelectSingle(java.lang.String, int, java.lang.String[], java.lang.String[], int),
appendSelectMultiple(java.lang.StringBuffer, java.lang.String, int, java.lang.String[], java.lang.String[], boolean[])
public static String formatSelectSingle(String name,
int vis_size,
String[] choice_names,
String[] choice_disp,
int selected)
appendSelectStart(java.lang.StringBuffer, java.lang.String, int, boolean), appendSelectChoice(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean) and appendSelectEnd(java.lang.StringBuffer) to build a
single choice selection list. This isn't as flexible and building
the parts by yourself, but it is convienent.
name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).vis_size - Controls how much is visible to the user (set to 0 to omit and
go with default). This may control whether the browser
displays a pick list button, or a scrolling window choice box
of this many rows - I'm not sure.choice_names - Array of strings which identify the choice names for each of
the choice items. Choice names are typically not displayed to
the user, but used by the back end processor of the form when
looking at what the user selected.choice_disp - Array of strings (must be exactly the same length as
choice_names, or null) which is the set of choices to be
displayed to the user (this is what the user sees when making
choices). If null, then choice_names will be used.selected - Which item is currently selected. Set to -1 if you don't want
anything marked as selected by default. Otherwise, make sure
the value is in the range of [0,choice_names.length-1].
appendSelectSingle(java.lang.StringBuffer, java.lang.String, int, java.lang.String[], java.lang.String[], int),
formatSelectMultiple(java.lang.String, int, java.lang.String[], java.lang.String[], boolean[])
public static void appendSelectMultiple(StringBuffer sb,
String name,
int vis_size,
String[] choice_names,
String[] choice_disp,
boolean[] selected)
appendSelectStart(java.lang.StringBuffer, java.lang.String, int, boolean), appendSelectChoice(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean) and appendSelectEnd(java.lang.StringBuffer) to build a
multiple choice selection list. This isn't as flexible and building
the parts by yourself, but it is convienent.
sb - StringBuffer to append the results to.name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).vis_size - Controls how much is visible to the user (set to 0 to omit and
go with default). This may control whether the browser
displays a pick list button, or a scrolling window choice box
of this many rows - I'm not sure.choice_names - Array of strings which identify the choice names for each of
the choice items. Choice names are typically not displayed to
the user, but used by the back end processor of the form when
looking at what the user selected.choice_disp - Array of strings (must be exactly the same length as
choice_names, or null) which is the set of choices to be
displayed to the user (this is what the user sees when making
choices). If null, then choice_names will be used.selected - Array of boolean values which indicate which entries should be
in the selected state. If null, then no entries will be
considered selected. Make sure the value is in the range of
[0,choice_names.length-1].formatSelectMultiple(java.lang.String, int, java.lang.String[], java.lang.String[], boolean[]),
appendSelectSingle(java.lang.StringBuffer, java.lang.String, int, java.lang.String[], java.lang.String[], int)
public static String formatSelectMultiple(String name,
int vis_size,
String[] choice_names,
String[] choice_disp,
boolean[] selected)
appendSelectStart(java.lang.StringBuffer, java.lang.String, int, boolean), appendSelectChoice(java.lang.StringBuffer, java.lang.String, java.lang.String, boolean) and appendSelectEnd(java.lang.StringBuffer) to build a
multiple choice selection list. This isn't as flexible and building
the parts by yourself, but it is convienent.
name - Name for the form field. This is not visible to the end user
but is used to reference the data later (must not be null).vis_size - Controls how much is visible to the user (set to 0 to omit and
go with default). This may control whether the browser
displays a pick list button, or a scrolling window choice box
of this many rows - I'm not sure.choice_names - Array of strings which identify the choice names for each of
the choice items. Choice names are typically not displayed to
the user, but used by the back end processor of the form when
looking at what the user selected.choice_disp - Array of strings (must be exactly the same length as
choice_names, or null) which is the set of choices to be
displayed to the user (this is what the user sees when making
choices). If null, then choice_names will be used.selected - Array of boolean values which indicate which entries should be
in the selected state. If null, then no entries will be
considered selected. Make sure the value is in the range of
[0,choice_names.length-1].
appendSelectMultiple(java.lang.StringBuffer, java.lang.String, int, java.lang.String[], java.lang.String[], boolean[]),
formatSelectSingle(java.lang.String, int, java.lang.String[], java.lang.String[], int)
public static void encodeSubmitParam(StringBuffer dst,
String from)
This method is used to properly format the strings to append to a URL that indicate form values (to allow one to make links that act like forms with all of the values set). Here is the table of how characters are currently replaced:
| In | Out |
|---|---|
| " " (space) | "+" |
| Letter/Digit | Same Character |
| Others [0,255] | %XX (Hex Value) |
IMPORTANT:You should not pass a full URL to this method as it will trash all of your characters. You should only use this method to append the names and then values of parameters. For example, if you pass: "x=312", it will mess up the "=" sign. Instead, use two separate calls (one to pass "x" and one to pass "312").
Here is an example of how one might use this:
public static String getMapURL(String addr, String city, String st) {
StringBuffer url =
new StringBuffer("http://maps.yahoo.com/py/maps.py?addr=");
Form.encodeSubmitParam(url,addr);
url.append("&csz=");
Form.encodeSubmitParam(url,city);
url.append("%2C");
Form.encodeSubmitParam(url,zip);
Form.encodeSubmitParam(url,"&Get Map=Get Map");
return url.toString();
}
dst - Buffer to append the encoded results to.src - String to interpret (can be null - nothing will be appended)addSubmitPair(java.lang.StringBuffer, boolean, java.lang.String, java.lang.String)
public static boolean addSubmitPair(StringBuffer dst,
boolean first,
String name,
String val)
This method is used to properly adds a name/value pair to the end of a URL string being formed. For example, if you wanted to set "x" to "312" and "y" to "400" this could be a handy method.
Here is an example of how one might use this (this is a
"cleaner" rewrite of the example in encodeSubmitParam(java.lang.StringBuffer, java.lang.String)):
public static String getMapURL(String addr, String city, String st) {
StringBuffer url =
new StringBuffer("http://maps.yahoo.com/py/maps.py");
boolean needFirst = Form.addSubmitPair(url,true,"addr",addr);
needFirst = Form.addSubmitPair(url,needFirst,"csz",city+','+zip);
needFirst = Form.addSubmitPair(url,needFirst,"Get Map","Get Map");
return url.toString();
}
dst - Buffer to append the encoded results to.first - Is this the first parameter to append (determines if '?' or
'&' will be appended first).name - Name of the parameter we will set the value for (if this is
null, then nothing is done)value - Value of the parameter to append.
encodeSubmitParam(java.lang.StringBuffer, java.lang.String)public static void main(String[] args)
java com.ccg.util.Form
args - Array of command line arguments (which are ignored).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||