JSPSMARTUPLOAD : DOCUMENTATION
Request Object
Last modified: March 1st, 2000
© 2000 Advantys. All rights reserved.

getParameter

The getParameter property return the value of a request parameter.

Syntax
.getParameter("Name")

Return Values
Returns a String value.

Example

<%
out.println(myUpload.getRequest().getParameter("myParameter") + "<br>");
%>

getParameterNames

The getParameterNames property specifies the names for this collection.

Syntax
.getParameterNames

Return Values
Returns an Enumeration value.

Example

<%
// Retreive parameters
java.util.Enumeration e = myUpload.getRequest().getParameterNames();
%>

getParameterValues

The getParameterValues property specifies the values for the tag. If there are several tag with the same name, or a tag accept multiple values, then the property returns a string array of these values.

Syntax
.getParameterValues(String key)

Return Values
Returns a String array value.

Parameter

The key in the enumeration object.

Examples

<%
// Browse parameters
while (e.hasMoreElements()) {
  String key = (String)e.nextElement();
  String[] values = myUpload.getRequest().getParameterValues(key);

  // Browse values of the current parameter
  for(int i = 0; i < values.length; i++) {
    out.print(key + " = ");
    out.print(values[i] + "<br>");
  }
}
%>

 

© 2000 Advantys. All rights reserved.