Java Doc for FormTag.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » taglib » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » struts 1.3.8 » org.apache.struts.taglib.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.servlet.jsp.tagext.TagSupport
      org.apache.struts.taglib.html.FormTag

All known Subclasses:   org.apache.strutsel.taglib.html.ELFormTag,  org.apache.struts.taglib.nested.html.NestedFormTag,
FormTag
public class FormTag extends TagSupport (Code)
Custom tag that represents an input form, associated with a bean whose properties correspond to the various fields of the form.
version:
   $Rev: 479633 $ $Date: 2006-11-27 08:25:35 -0600 (Mon, 27 Nov 2006) $


Field Summary
protected  StringacceptCharset
     The list of character encodings for input data that the server should accept.
protected  Stringaction
     The action URL to which this form should be submitted, if any.
protected  StringbeanName
     The name of the form bean to (create and) use.
protected  StringbeanScope
     The scope of the form bean to (create and) use.
protected  StringbeanType
     The type of the form bean to (create and) use.
protected  Stringenctype
     The content encoding to be used on a POST submit.
protected  Stringfocus
     The name of the field to receive focus, if any.
protected  StringfocusIndex
     The index in the focus field array to receive focus.
protected static  StringlineEnd
     The line ending string.
protected  ActionMappingmapping
    
protected static  MessageResourcesmessages
     The message resources for this package.
protected  Stringmethod
     The request method used when submitting this form.
protected  ModuleConfigmoduleConfig
     The module configuration for our module.
protected  Stringonreset
     The onReset event script.
protected  Stringonsubmit
     The onSubmit event script.
protected  booleanreadonly
     Controls whether child controls should be 'readonly'.
protected  booleanscriptLanguage
     Include language attribute in the focus script's <script> element.
protected  ActionServletservlet
     The ActionServlet instance we are associated with (so that we can initialize the servlet property on any form bean that we create).
protected  Stringstyle
     The style attribute associated with this tag.
protected  StringstyleClass
     The style class associated with this tag.
protected  StringstyleId
     The identifier associated with this tag.
protected  Stringtarget
     The window target.


Method Summary
public  intdoEndTag()
     Render the end of this form.
public  intdoStartTag()
     Render the beginning of this form.
public  StringgetAcceptCharset()
     Return the list of character encodings accepted.
public  StringgetAction()
     Return the action URL to which this form should be submitted.
public  StringgetBeanName()
     Return the name of the form bean corresponding to this tag.
public  StringgetDir()
     Returns the direction for weak/neutral text this element.
public  StringgetEnctype()
     Return the content encoding used when submitting this form.
public  StringgetFocus()
     Return the focus field name for this form.
public  StringgetFocusIndex()
     Returns the focusIndex.
public  StringgetLang()
     Returns the language code of this element.
public  StringgetMethod()
     Return the request method used when submitting this form.
public  StringgetOnreset()
     Return the onReset event script.
public  StringgetOnsubmit()
     Return the onSubmit event script.
public  booleangetScriptLanguage()
     Gets whether or not the focus script's <script> element will include the language attribute.
public  StringgetStyle()
     Return the style attribute for this tag.
public  StringgetStyleClass()
     Return the style class for this tag.
public  StringgetStyleId()
     Return the style identifier for this tag.
public  StringgetTarget()
     Return the window target.
protected  voidinitFormBean()
     Locate or create the bean associated with our form.
public  booleanisDisabled()
     Returns the disabled event handler.
public  booleanisReadonly()
     Returns the readonly event handler.
protected  voidlookup()
     Look up values for the name, scope, and type properties if necessary.
public  voidrelease()
     Release any acquired resources.
protected  voidrenderAction(StringBuffer results)
    
protected  voidrenderAttribute(StringBuffer results, String attribute, String value)
    
protected  StringrenderFocusJavascript()
     Generates javascript to set the initial focus to the form element given in the tag's "focus" attribute.
protected  StringrenderFormStartElement()
     Generates the opening <form> element with appropriate attributes.
protected  voidrenderName(StringBuffer results)
     Renders the name of the form.
protected  voidrenderOtherAttributes(StringBuffer results)
     'Hook' to enable this tag to be extended and additional attributes added.
protected  StringrenderToken()
     Generates a hidden input field with token information, if any.
public  voidsetAcceptCharset(String acceptCharset)
     Set the list of character encodings accepted.
public  voidsetAction(String action)
     Set the action URL to which this form should be submitted.
public  voidsetDir(String dir)
     Sets the direction for weak/neutral text of this element.
public  voidsetDisabled(boolean disabled)
     Sets the disabled event handler.
public  voidsetEnctype(String enctype)
     Set the content encoding used when submitting this form.
public  voidsetFocus(String focus)
     Set the focus field name for this form.
public  voidsetFocusIndex(String focusIndex)
     Sets the focusIndex.
public  voidsetLang(String lang)
     Sets the language code of this element.
public  voidsetMethod(String method)
     Set the request method used when submitting this form.
public  voidsetOnreset(String onReset)
     Set the onReset event script.
public  voidsetOnsubmit(String onSubmit)
     Set the onSubmit event script.
public  voidsetReadonly(boolean readonly)
     Sets the readonly event handler.
public  voidsetScriptLanguage(boolean scriptLanguage)
     Sets whether or not the focus script's <script> element will include the language attribute.
public  voidsetStyle(String style)
     Set the style attribute for this tag.
public  voidsetStyleClass(String styleClass)
     Set the style class for this tag.
public  voidsetStyleId(String styleId)
     Set the style identifier for this tag.
public  voidsetTarget(String target)
     Set the window target.

Field Detail
acceptCharset
protected String acceptCharset(Code)
The list of character encodings for input data that the server should accept.



action
protected String action(Code)
The action URL to which this form should be submitted, if any.



beanName
protected String beanName(Code)
The name of the form bean to (create and) use. This is either the same as the 'name' attribute, if that was specified, or is obtained from the associated ActionMapping otherwise.



beanScope
protected String beanScope(Code)
The scope of the form bean to (create and) use. This is either the same as the 'scope' attribute, if that was specified, or is obtained from the associated ActionMapping otherwise.



beanType
protected String beanType(Code)
The type of the form bean to (create and) use. This is either the same as the 'type' attribute, if that was specified, or is obtained from the associated ActionMapping otherwise.



enctype
protected String enctype(Code)
The content encoding to be used on a POST submit.



focus
protected String focus(Code)
The name of the field to receive focus, if any.



focusIndex
protected String focusIndex(Code)
The index in the focus field array to receive focus. This only applies if the field given in the focus attribute is actually an array of fields. This allows a specific field in a radio button array to receive focus while still allowing indexed field names like "myRadioButtonField[1]" to be passed in the focus attribute.
since:
   Struts 1.1



lineEnd
protected static String lineEnd(Code)
The line ending string.



mapping
protected ActionMapping mapping(Code)
The ActionMapping defining where we will be submitting this form



messages
protected static MessageResources messages(Code)
The message resources for this package.



method
protected String method(Code)
The request method used when submitting this form.



moduleConfig
protected ModuleConfig moduleConfig(Code)
The module configuration for our module.



onreset
protected String onreset(Code)
The onReset event script.



onsubmit
protected String onsubmit(Code)
The onSubmit event script.



readonly
protected boolean readonly(Code)
Controls whether child controls should be 'readonly'.



scriptLanguage
protected boolean scriptLanguage(Code)
Include language attribute in the focus script's <script> element. This property is ignored in XHTML mode.
since:
   Struts 1.2



servlet
protected ActionServlet servlet(Code)
The ActionServlet instance we are associated with (so that we can initialize the servlet property on any form bean that we create).



style
protected String style(Code)
The style attribute associated with this tag.



styleClass
protected String styleClass(Code)
The style class associated with this tag.



styleId
protected String styleId(Code)
The identifier associated with this tag.



target
protected String target(Code)
The window target.





Method Detail
doEndTag
public int doEndTag() throws JspException(Code)
Render the end of this form.
throws:
  JspException - if a JSP exception has occurred



doStartTag
public int doStartTag() throws JspException(Code)
Render the beginning of this form.
throws:
  JspException - if a JSP exception has occurred



getAcceptCharset
public String getAcceptCharset()(Code)
Return the list of character encodings accepted.



getAction
public String getAction()(Code)
Return the action URL to which this form should be submitted.



getBeanName
public String getBeanName()(Code)
Return the name of the form bean corresponding to this tag. There is no corresponding setter method; this method exists so that the nested tag classes can obtain the actual bean name derived from other attributes of the tag.



getDir
public String getDir()(Code)
Returns the direction for weak/neutral text this element.
since:
   Struts 1.3.6



getEnctype
public String getEnctype()(Code)
Return the content encoding used when submitting this form.



getFocus
public String getFocus()(Code)
Return the focus field name for this form.



getFocusIndex
public String getFocusIndex()(Code)
Returns the focusIndex. String



getLang
public String getLang()(Code)
Returns the language code of this element.
since:
   Struts 1.3.6



getMethod
public String getMethod()(Code)
Return the request method used when submitting this form.



getOnreset
public String getOnreset()(Code)
Return the onReset event script.



getOnsubmit
public String getOnsubmit()(Code)
Return the onSubmit event script.



getScriptLanguage
public boolean getScriptLanguage()(Code)
Gets whether or not the focus script's <script> element will include the language attribute. true if language attribute will be included.
since:
   Struts 1.2



getStyle
public String getStyle()(Code)
Return the style attribute for this tag.



getStyleClass
public String getStyleClass()(Code)
Return the style class for this tag.



getStyleId
public String getStyleId()(Code)
Return the style identifier for this tag.



getTarget
public String getTarget()(Code)
Return the window target.



initFormBean
protected void initFormBean() throws JspException(Code)
Locate or create the bean associated with our form.
throws:
  JspException -
since:
   Struts 1.1



isDisabled
public boolean isDisabled()(Code)
Returns the disabled event handler.



isReadonly
public boolean isReadonly()(Code)
Returns the readonly event handler.



lookup
protected void lookup() throws JspException(Code)
Look up values for the name, scope, and type properties if necessary.
throws:
  JspException - if a required value cannot be looked up



release
public void release()(Code)
Release any acquired resources.



renderAction
protected void renderAction(StringBuffer results)(Code)
Renders the action attribute



renderAttribute
protected void renderAttribute(StringBuffer results, String attribute, String value)(Code)
Renders attribute="value" if not null



renderFocusJavascript
protected String renderFocusJavascript()(Code)
Generates javascript to set the initial focus to the form element given in the tag's "focus" attribute.
since:
   Struts 1.1



renderFormStartElement
protected String renderFormStartElement() throws JspException(Code)
Generates the opening <form> element with appropriate attributes.
since:
   Struts 1.1



renderName
protected void renderName(StringBuffer results) throws JspException(Code)
Renders the name of the form. If XHTML is set to true, the name will be rendered as an 'id' attribute, otherwise as a 'name' attribute.



renderOtherAttributes
protected void renderOtherAttributes(StringBuffer results)(Code)
'Hook' to enable this tag to be extended and additional attributes added.



renderToken
protected String renderToken()(Code)
Generates a hidden input field with token information, if any. The field is added within a div element for HTML 4.01 Strict compliance. A hidden input field containing the token.
since:
   Struts 1.1



setAcceptCharset
public void setAcceptCharset(String acceptCharset)(Code)
Set the list of character encodings accepted.
Parameters:
  acceptCharset - The list of character encodings



setAction
public void setAction(String action)(Code)
Set the action URL to which this form should be submitted.
Parameters:
  action - The new action URL



setDir
public void setDir(String dir)(Code)
Sets the direction for weak/neutral text of this element.
since:
   Struts 1.3.6



setDisabled
public void setDisabled(boolean disabled)(Code)
Sets the disabled event handler.



setEnctype
public void setEnctype(String enctype)(Code)
Set the content encoding used when submitting this form.
Parameters:
  enctype - The new content encoding



setFocus
public void setFocus(String focus)(Code)
Set the focus field name for this form.
Parameters:
  focus - The new focus field name



setFocusIndex
public void setFocusIndex(String focusIndex)(Code)
Sets the focusIndex.
Parameters:
  focusIndex - The focusIndex to set



setLang
public void setLang(String lang)(Code)
Sets the language code of this element.
since:
   Struts 1.3.6



setMethod
public void setMethod(String method)(Code)
Set the request method used when submitting this form.
Parameters:
  method - The new request method



setOnreset
public void setOnreset(String onReset)(Code)
Set the onReset event script.
Parameters:
  onReset - The new event script



setOnsubmit
public void setOnsubmit(String onSubmit)(Code)
Set the onSubmit event script.
Parameters:
  onSubmit - The new event script



setReadonly
public void setReadonly(boolean readonly)(Code)
Sets the readonly event handler.



setScriptLanguage
public void setScriptLanguage(boolean scriptLanguage)(Code)
Sets whether or not the focus script's <script> element will include the language attribute.
since:
   Struts 1.2



setStyle
public void setStyle(String style)(Code)
Set the style attribute for this tag.
Parameters:
  style - The new style attribute



setStyleClass
public void setStyleClass(String styleClass)(Code)
Set the style class for this tag.
Parameters:
  styleClass - The new style class



setStyleId
public void setStyleId(String styleId)(Code)
Set the style identifier for this tag.
Parameters:
  styleId - The new style identifier



setTarget
public void setTarget(String target)(Code)
Set the window target.
Parameters:
  target - The new window target



Fields inherited from javax.servlet.jsp.tagext.TagSupport
protected String id(Code)(Java Doc)
protected PageContext pageContext(Code)(Java Doc)

Methods inherited from javax.servlet.jsp.tagext.TagSupport
public int doAfterBody() throws JspException(Code)(Java Doc)
public int doEndTag() throws JspException(Code)(Java Doc)
public int doStartTag() throws JspException(Code)(Java Doc)
final public static Tag findAncestorWithClass(Tag from, Class klass)(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public Tag getParent()(Code)(Java Doc)
public Object getValue(String k)(Code)(Java Doc)
public Enumeration getValues()(Code)(Java Doc)
public void release()(Code)(Java Doc)
public void removeValue(String k)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setPageContext(PageContext pageContext)(Code)(Java Doc)
public void setParent(Tag t)(Code)(Java Doc)
public void setValue(String k, Object o)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.