Java Doc for JspUtil.java in  » Web-Framework » aranea-mvc-1.1.1 » org » araneaframework » jsp » util » 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 » aranea mvc 1.1.1 » org.araneaframework.jsp.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.araneaframework.jsp.util.JspUtil

JspUtil
public class JspUtil (Code)
UI common utilities.
author:
   Oleg Mürk




Method Summary
public static  ObjectgetContextEntry(PageContext pageContext, String key)
     Read attribute value from request scope.
public static  LocalizationContextgetLocalizationContext(PageContext pageContext)
    
public static  StringgetResourceString(PageContext pageContext, String id)
     Get resource string for given id.
public static  StringgetResourceStringOrNull(PageContext pageContext, String id)
     Get resource string for given id.
public static  voidinclude(PageContext pageContext, String path)
     Includes JSP page at given path.
public static  ListparseMultiValuedAttribute(String attribute)
     Parses multi-valued attribute, where attributes are separated by commas. Empty attribute values are allowed, they are specified by including whitespace between commas: "first, ,third". List<String> containing attribute values.
public static  ObjectrequireContextEntry(PageContext pageContext, String key)
     Read attribute value from request scope and ensure that it is defined.
public static  voidwriteAttribute(Writer out, String name, Object value, boolean escape)
     Writers attribute of form ' ATTR_NAME="value"'.
public static  voidwriteAttribute(Writer out, String name, Object value)
    
public static  voidwriteAttributes(Writer out, Map attributes)
     Writes out attributes contained in the Map <attributeName, attributeValue>.
public static  voidwriteCloseAttribute(Writer out)
     Writes closing of attribute.
public static  voidwriteCloseStartEndTag(Writer out)
     Writes closing of start tag that is also and end tag.
public static  voidwriteCloseStartEndTag_SS(Writer out)
     Writes closing of start tag that is also and end tag.
public static  voidwriteCloseStartTag(Writer out)
    
public static  voidwriteCloseStartTag_SS(Writer out)
     Writes closing of start tag.
public static  voidwriteEndTag(Writer out, String tag)
     Writes end tag.
public static  voidwriteEndTag_SS(Writer out, String tag)
     Writes end tag.
public static  voidwriteEscaped(Writer out, String value)
     Writes out escaped string.
public static  voidwriteEscapedAttribute(Writer out, String value)
     Writes out escaped attribute string.
public static  voidwriteEscapedScriptString(Writer out, String value, boolean escapeEntities)
     Writes out escaped script string (can be used also in attributes).
public static  voidwriteEventAttributes(Writer out, UiEvent event)
    
public static  voidwriteHiddenInputElement(Writer out, String name, String value)
     Writes out hidden html input element with give name and value.
public static  voidwriteOpenAttribute(Writer out, String name)
     Writes opening of attribute.
public static  voidwriteOpenStartTag(Writer out, String tag)
    
public static  voidwriteScriptString(Writer out, String value)
     Writes script string.
public static  voidwriteScriptString(Writer out, String value, boolean escapeEntities)
     Writes given String properly formatted for javascript in single quotes.
public static  voidwriteScriptString_rt(Writer out, String value, String expression)
     Writes script string or expression evaluating to a string.
public static  voidwriteStartEndTag(Writer out, String tag)
     Writes start tag that is also and end tag.
public static  voidwriteStartEndTag_SS(Writer out, String tag)
     Writes start tag that is also and end tag.
public static  voidwriteStartTag(Writer out, String tag)
     Writes start tag.
public static  voidwriteStartTag_SS(Writer out, String tag)
     Writes end tag.



Method Detail
getContextEntry
public static Object getContextEntry(PageContext pageContext, String key)(Code)
Read attribute value from request scope.



getLocalizationContext
public static LocalizationContext getLocalizationContext(PageContext pageContext)(Code)



getResourceString
public static String getResourceString(PageContext pageContext, String id)(Code)
Get resource string for given id. Throws MissingResourceException when given resource not found.



getResourceStringOrNull
public static String getResourceStringOrNull(PageContext pageContext, String id)(Code)
Get resource string for given id. Return null when given string not found



include
public static void include(PageContext pageContext, String path) throws ServletException, IOException(Code)
Includes JSP page at given path.



parseMultiValuedAttribute
public static List parseMultiValuedAttribute(String attribute)(Code)
Parses multi-valued attribute, where attributes are separated by commas. Empty attribute values are allowed, they are specified by including whitespace between commas: "first, ,third". List<String> containing attribute values.



requireContextEntry
public static Object requireContextEntry(PageContext pageContext, String key) throws JspException(Code)
Read attribute value from request scope and ensure that it is defined.
throws:
  AraneaJspException - if key is not present in given PageContext



writeAttribute
public static void writeAttribute(Writer out, String name, Object value, boolean escape) throws IOException(Code)
Writers attribute of form ' ATTR_NAME="value"'. If value is null, writes nothing. If escape is set to true HTML escaping takes place on the value (<, >, ", & get replaced with the entities).



writeAttribute
public static void writeAttribute(Writer out, String name, Object value) throws IOException(Code)



writeAttributes
public static void writeAttributes(Writer out, Map attributes) throws IOException(Code)
Writes out attributes contained in the Map <attributeName, attributeValue>. If map is null, writes nothing.



writeCloseAttribute
public static void writeCloseAttribute(Writer out) throws IOException(Code)
Writes closing of attribute.



writeCloseStartEndTag
public static void writeCloseStartEndTag(Writer out) throws IOException(Code)
Writes closing of start tag that is also and end tag.



writeCloseStartEndTag_SS
public static void writeCloseStartEndTag_SS(Writer out) throws IOException(Code)
Writes closing of start tag that is also and end tag. Space sensitive.



writeCloseStartTag
public static void writeCloseStartTag(Writer out) throws IOException(Code)
Writes closing of start tag



writeCloseStartTag_SS
public static void writeCloseStartTag_SS(Writer out) throws IOException(Code)
Writes closing of start tag. Space sensitive.



writeEndTag
public static void writeEndTag(Writer out, String tag) throws IOException(Code)
Writes end tag.



writeEndTag_SS
public static void writeEndTag_SS(Writer out, String tag) throws IOException(Code)
Writes end tag. Space sensitive.



writeEscaped
public static void writeEscaped(Writer out, String value) throws IOException(Code)
Writes out escaped string. null values are omitted.



writeEscapedAttribute
public static void writeEscapedAttribute(Writer out, String value) throws IOException(Code)
Writes out escaped attribute string. null values are omitted.



writeEscapedScriptString
public static void writeEscapedScriptString(Writer out, String value, boolean escapeEntities) throws IOException(Code)
Writes out escaped script string (can be used also in attributes). null values are omitted.
Parameters:
  escapeEntities - - when this is true, standard XML entities are used to escapegreater-than, less-than, ampersand and double-quotes. Otherwise, these symbols areleft as they are. Set this attribute to true, if you write javascript inside an attribute,and set it to false if you write javascript inside a <script> tag.



writeEventAttributes
public static void writeEventAttributes(Writer out, UiEvent event) throws IOException(Code)



writeHiddenInputElement
public static void writeHiddenInputElement(Writer out, String name, String value) throws IOException(Code)
Writes out hidden html input element with give name and value.



writeOpenAttribute
public static void writeOpenAttribute(Writer out, String name) throws IOException(Code)
Writes opening of attribute.



writeOpenStartTag
public static void writeOpenStartTag(Writer out, String tag) throws IOException(Code)
Writes opening of start tag



writeScriptString
public static void writeScriptString(Writer out, String value) throws IOException(Code)
Writes script string. Equivalent to writeScriptString(out, value, true)



writeScriptString
public static void writeScriptString(Writer out, String value, boolean escapeEntities) throws IOException(Code)
Writes given String properly formatted for javascript in single quotes.
Parameters:
  escapeEntities - set it to true if you want to escape XML entities like &amp;, <lt; etc.
See Also:   JspUtil.writeEscapedScriptString



writeScriptString_rt
public static void writeScriptString_rt(Writer out, String value, String expression) throws IOException, AraneaJspException(Code)
Writes script string or expression evaluating to a string.
Parameters:
  out -
Parameters:
  value - string value
Parameters:
  expression - expression
throws:
  AraneaJspException - if both value and expression are specified



writeStartEndTag
public static void writeStartEndTag(Writer out, String tag) throws IOException(Code)
Writes start tag that is also and end tag.



writeStartEndTag_SS
public static void writeStartEndTag_SS(Writer out, String tag) throws IOException(Code)
Writes start tag that is also and end tag. Space sensitive.



writeStartTag
public static void writeStartTag(Writer out, String tag) throws IOException(Code)
Writes start tag.



writeStartTag_SS
public static void writeStartTag_SS(Writer out, String tag) throws IOException(Code)
Writes end tag. Space sensitive.



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.