Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
FormPoster.setAction
Sets the action for this request.
Syntax
public void setAction(String sAction) throws ExceptionParameters
sAction- The action to issue on the
post()call. Valid values areFormPoster.GetorFormPoster.Post.Description
The
setActionmethod sets the action for this request. Valid values areFormPoster.GetorFormPoster.Post.Throws
Exception if an invalid action is specified.
Example
Use the formposter to fetch a HTML page:
FormPoster fp = new FormPoster(); fp.setURL("http://myserver/home.html"); fp.setAction(FormPoster.Get); status = fp.post(); String sHTMLPage = fp.getResponse();See Also
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.