|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.ipage.iform.IForm
public class IForm
The IForm is a TransformationBean used to produce a form using a variety of markup languages (including WML,HDML, and HTML). This class will produce the appropriate markup language based on the requesting browser. For example, if a user accesses a JSP page containing an IForm from their cell phone, the IForm bean will produce either WML or HDML based on the type of browser the cell phone contained. If another user accesses the same JSP page using Internet Explorer, the IForm bean would produce HTML instead.
Note that the toString() method on this class calls the write
method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Examples for this class may be found on the Examples Site.
JSP custom tags provide an alternative to using the TransformationBeans. Visit the Custom Tag Library Reference for additional information on the sas:IForm custom tag.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_METHOD
Default form submission method. |
Fields inherited from class com.sas.servlet.tbeans.ipage.BaseIPage |
---|
HTML_PROLOG, WML_PROLOG |
Constructor Summary | |
---|---|
IForm()
Construct a new Form |
|
IForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Construct a new IForm |
|
IForm(java.lang.String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Construct a new IForm |
Method Summary | |
---|---|
BaseIFormElement |
add(BaseIFormElement element)
Adds a BaseIFormElement to the IForm bean, such as a text entry field or radio box. |
java.lang.String |
getAction()
Gets the URL which is used to post forms |
java.lang.String |
getActionLabel()
Gets the label which is used to post forms |
java.lang.String |
getMethod()
Gets the HTTP method to be used when sending the form contents to the server. |
void |
setAction(java.lang.String action)
Sets the URL which is used to post forms via email (i.e "mailto:some.one@sas.com") or a server-side form handler (such as a servlet or JSP page) via HTTP (i.e. |
void |
setActionLabel(java.lang.String actionLabel)
Sets the label which is used to post forms. |
void |
setMethod(java.lang.String method)
Sets the HTTP method to be used when sending the form contents to the server. |
void |
writeBase(java.io.PrintWriter out)
Writes the form base in the appropriate markup language |
void |
writeHiddenElements(java.io.PrintWriter out)
Writes the hidden elements associated with this form. |
Methods inherited from class com.sas.servlet.tbeans.ipage.BaseIPage |
---|
addOption, getBrowserType, getCacheTimeToLive, getOptionLabel, getOptionURL, getTitle, resolveNewLine, setBrowserType, setCacheTimeToLive, setId, setName, setName, setRequest, setResponse, setStyle, setStyleClass, setTitle, toString, write, writeBase, writeBase, writeFooter, writeFooter, writeFooter, writeHeader, writeHeader, writeHeader |
Field Detail |
---|
public static final java.lang.String DEFAULT_METHOD
Constructor Detail |
---|
public IForm()
public IForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- The request objectresponse
- The response objectpublic IForm(java.lang.String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
name
- The namerequest
- The request objectresponse
- The response objectMethod Detail |
---|
public void writeBase(java.io.PrintWriter out) throws java.io.IOException
writeBase
in class BaseIPage
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeHiddenElements(java.io.PrintWriter out) throws java.io.IOException
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void setMethod(java.lang.String method)
method
- The HTTP methodpublic java.lang.String getMethod()
public void setAction(java.lang.String action)
action
- The action URLpublic java.lang.String getAction()
public void setActionLabel(java.lang.String actionLabel)
action
- The action URLpublic java.lang.String getActionLabel()
public BaseIFormElement add(BaseIFormElement element)
element
- The BaseIFormElement object to be added to the IForm
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |