Java Doc for MessagesTag.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) 


javax.servlet.jsp.tagext.BodyTagSupport
   org.apache.struts.taglib.html.MessagesTag

All known Subclasses:   org.apache.strutsel.taglib.html.ELMessagesTag,  org.apache.struts.taglib.nested.html.NestedMessagesTag,
MessagesTag
public class MessagesTag extends BodyTagSupport (Code)
Custom tag that iterates the elements of a message collection. It defaults to retrieving the messages from Globals.ERROR_KEY, but if the message attribute is set to true then the messages will be retrieved from Globals.MESSAGE_KEY. This is an alternative to the default ErrorsTag.
version:
   $Rev: 471754 $ $Date: 2005-11-08 23:50:53 -0500 (Tue, 08 Nov 2005)
version:
   $
since:
   Struts 1.1


Field Summary
protected  Stringbundle
     The servlet context attribute key for our resources.
protected  Stringfooter
     The message resource key for errors footer.
protected  Stringheader
     The message resource key for errors header.
protected  Stringid
     The name of the scripting variable to be exposed.
protected  Iteratoriterator
     Iterator of the elements of this error collection, while we are actually running.
protected  Stringlocale
     The session attribute key for our locale.
protected  Stringmessage
     If this is set to 'true', then the Globals.MESSAGE_KEY will be used to retrieve the messages from scope.
protected static  MessageResourcesmessageResources
     The message resources for this package.
protected  Stringname
     The request attribute key for our error messages (if any).
protected  booleanprocessed
     Whether or not any error messages have been processed.
protected  Stringproperty
     The name of the property for which error messages should be returned, or null to return all errors.


Method Summary
public  intdoAfterBody()
     Make the next collection element available and loop, or finish the iterations if there are no more elements.
public  intdoEndTag()
     Clean up after processing this enumeration.
public  intdoStartTag()
     Construct an iterator for the specified collection, and begin looping through the body once per element.
public  StringgetBundle()
    
public  StringgetFooter()
    
public  StringgetHeader()
    
public  StringgetId()
    
public  StringgetLocale()
    
public  StringgetMessage()
    
public  StringgetName()
    
public  StringgetProperty()
    
public  voidrelease()
     Release all allocated resources.
public  voidsetBundle(String bundle)
    
public  voidsetFooter(String footer)
    
public  voidsetHeader(String header)
    
public  voidsetId(String id)
    
public  voidsetLocale(String locale)
    
public  voidsetMessage(String message)
    
public  voidsetName(String name)
    
public  voidsetProperty(String property)
    

Field Detail
bundle
protected String bundle(Code)
The servlet context attribute key for our resources.



footer
protected String footer(Code)
The message resource key for errors footer.



header
protected String header(Code)
The message resource key for errors header.



id
protected String id(Code)
The name of the scripting variable to be exposed.



iterator
protected Iterator iterator(Code)
Iterator of the elements of this error collection, while we are actually running.



locale
protected String locale(Code)
The session attribute key for our locale.



message
protected String message(Code)
If this is set to 'true', then the Globals.MESSAGE_KEY will be used to retrieve the messages from scope.



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



name
protected String name(Code)
The request attribute key for our error messages (if any).



processed
protected boolean processed(Code)
Whether or not any error messages have been processed.



property
protected String property(Code)
The name of the property for which error messages should be returned, or null to return all errors.





Method Detail
doAfterBody
public int doAfterBody() throws JspException(Code)
Make the next collection element available and loop, or finish the iterations if there are no more elements.
throws:
  JspException - if a JSP exception has occurred



doEndTag
public int doEndTag() throws JspException(Code)
Clean up after processing this enumeration.
throws:
  JspException - if a JSP exception has occurred



doStartTag
public int doStartTag() throws JspException(Code)
Construct an iterator for the specified collection, and begin looping through the body once per element.
throws:
  JspException - if a JSP exception has occurred



getBundle
public String getBundle()(Code)



getFooter
public String getFooter()(Code)



getHeader
public String getHeader()(Code)



getId
public String getId()(Code)



getLocale
public String getLocale()(Code)



getMessage
public String getMessage()(Code)



getName
public String getName()(Code)



getProperty
public String getProperty()(Code)



release
public void release()(Code)
Release all allocated resources.



setBundle
public void setBundle(String bundle)(Code)



setFooter
public void setFooter(String footer)(Code)



setHeader
public void setHeader(String header)(Code)



setId
public void setId(String id)(Code)



setLocale
public void setLocale(String locale)(Code)



setMessage
public void setMessage(String message)(Code)



setName
public void setName(String name)(Code)



setProperty
public void setProperty(String property)(Code)



Fields inherited from javax.servlet.jsp.tagext.BodyTagSupport
protected BodyContent bodyContent(Code)(Java Doc)

Methods inherited from javax.servlet.jsp.tagext.BodyTagSupport
public int doAfterBody() throws JspException(Code)(Java Doc)
public int doEndTag() throws JspException(Code)(Java Doc)
public void doInitBody() throws JspException(Code)(Java Doc)
public int doStartTag() throws JspException(Code)(Java Doc)
public BodyContent getBodyContent()(Code)(Java Doc)
public JspWriter getPreviousOut()(Code)(Java Doc)
public void release()(Code)(Java Doc)
public void setBodyContent(BodyContent b)(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.