Servlet Wizard Page Help
HTTP Servlet Method
Select the HTTP method which your servlet implements, either GET or POST. The wizard
will attempt to guess which method the servlet supports based on the methods the class
implements. If the wizard is unable to select properly you will need to select the
proper method.
Servlet URL
Enter the URL which corresponds to invoking the servlet. This field is initialized with
the binding URL entered from the initial wizard page. It is available on this wizard
page for modification if necessary.
Servlet Parameters
Enter the servlet parameters which should be passed to the servlet encoded within the GET
or POST request. Enter a parameter name and use the Add button to add it to the list. The
list is selectable--when a parameter or parameters are selected they can be deleted with
the Delete button.
If the servlet does not have parameters (i.e. the servlet takes raw data from the
QUERY_STRING or input stream) refrain from entering any parameters here.
Mime Types
The mime input and output types specify the content type used with the servlet's input
and output streams. If the servlet specified uses the GET method, then the input
mime type is disabled because it is unused. In the servlet method is POST, then when
a parameter is added the wizard sets the input type to
application/x-www-form-urlencoded
as this is the correct mime type for
encoded parameters/values in the input stream. If the servlet method is POST and there
are no parameters then the user must set the mime type correctly for the stream content,
for example text/xml
to specify that the input is in XML format.
For the mime output type please specify the output content type that is generated from
the servlet. Again, an example would be text/xml
for a servlet that
produces XML content output.