|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.taglib.html.FormTag com.ibm.struts.taglib.html.FormTag
public class FormTag
This class is a simple extension of the Struts form tag to allow creating a Portal link. The FormTag will namescope the name of the form, so this class provides the methods to get the namescoped name.
Field Summary | |
---|---|
protected java.lang.String |
encodedBeanName
The encoded name of the form bean. |
protected java.lang.String |
focusTimeout
The focus timeout |
protected boolean |
generateMarkup
generate markup. |
protected java.lang.String |
name
|
protected java.lang.String |
portletMode
The Portlet mode |
protected java.lang.String |
scope
|
protected java.lang.String |
strutsAction
The struts action. |
protected java.lang.String |
type
|
protected java.lang.String |
urlType
The Portlet URL type |
protected boolean |
validate
validate form |
protected java.lang.String |
windowState
The Portlet window state |
Constructor Summary | |
---|---|
FormTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Render the end of this form. |
java.lang.String |
getEncodedBeanName()
Returns the encoded bean name |
java.lang.String |
getFocusTimeout()
Returns the focusTimeout |
boolean |
getGenerateMarkup()
Get generate markup. |
java.lang.String |
getName()
|
java.lang.String |
getPortletMode()
Returns the portlet mode. |
java.lang.String |
getScope()
|
java.lang.String |
getType()
|
java.lang.String |
getUrlType()
|
boolean |
getValidate()
|
java.lang.String |
getWindowState()
Returns the window state. |
protected void |
lookup()
Look up values for the name , scope , and
type properties if necessary. |
protected java.lang.String |
renderFormStartElement()
Generates the opening <form> element with appropriate
attributes. |
protected java.lang.String |
renderToken()
Generates a hidden input field with token information, if any. |
void |
setFocusTimeout(java.lang.String value)
|
void |
setGenerateMarkup(boolean generate)
Set whether or not to generate markup. |
void |
setName(java.lang.String name)
|
void |
setPortletMode(java.lang.String portletMode)
Set the portlet mode. |
void |
setScope(java.lang.String scope)
|
void |
setType(java.lang.String type)
|
void |
setUrlType(java.lang.String urlType)
|
void |
setValidate(boolean validate)
|
void |
setWindowState(java.lang.String windowState)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String encodedBeanName
protected java.lang.String urlType
protected java.lang.String name
protected java.lang.String scope
protected java.lang.String type
protected java.lang.String windowState
protected java.lang.String focusTimeout
protected java.lang.String portletMode
protected boolean validate
protected java.lang.String strutsAction
protected boolean generateMarkup
Constructor Detail |
---|
public FormTag()
Method Detail |
---|
public java.lang.String getUrlType()
public void setUrlType(java.lang.String urlType)
public java.lang.String getWindowState()
public void setWindowState(java.lang.String windowState)
public java.lang.String getFocusTimeout()
public void setFocusTimeout(java.lang.String value)
public java.lang.String getPortletMode()
public void setPortletMode(java.lang.String portletMode)
portletMode
- the portlet modepublic boolean getValidate()
public void setValidate(boolean validate)
public boolean getGenerateMarkup()
public void setGenerateMarkup(boolean generate)
generate
- rue if markup should be generatedprotected java.lang.String renderFormStartElement()
<form>
element with appropriate
attributes.
public int doEndTag() throws JspException
JspException
- if a JSP exception has occurredprotected void lookup() throws JspException
name
, scope
, and
type
properties if necessary.
JspException
- if a required value cannot be looked uppublic java.lang.String getEncodedBeanName()
protected java.lang.String renderToken()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getScope()
public void setScope(java.lang.String scope)
public java.lang.String getType()
public void setType(java.lang.String type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |