org.ultrawork.wtk.mc
Interface Component
- All Known Subinterfaces:
- Container
- All Known Implementing Classes:
- Link, Text, Block
- public interface Component
Represents a web component that can be written to a Jsp or
a Servlet response.
- Version:
- 0.2
- Author:
- Nicolas Bonvin
Field Summary |
static java.lang.String |
LOCALE_KEY
The session attributes key under which the user's selected
java.util.Locale is stored, if any. |
Method Summary |
void |
write(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Writes the component to the http response. |
void |
write(javax.servlet.jsp.PageContext pageContext)
Writes the component to the current page. |
LOCALE_KEY
public static final java.lang.String LOCALE_KEY
The session attributes key under which the user's selected
java.util.Locale
is stored, if any. If no such
attribute is found, the system default locale
will be used when retrieving internationalized messages. If used, this
attribute is typically set during user login processing.
For compatibility issues, this constant has the same value as
the LOCALE_KEY
of the org.apache.struts.action.Action
class. In order to remove dependencies towards the Struts
framework, it has been hardcoded in this class.
write
public void write(javax.servlet.jsp.PageContext pageContext)
throws java.io.IOException,
javax.servlet.ServletException
- Writes the component to the current page.
write
public void write(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Writes the component to the http response.
Copyright © 2002 - ultrawork