|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet atg.droplet.Tag
public class Tag
This class implements a simple generic HTML tag. This class can either serve as a base class for other HTML tags or can be used to represent any simple HTML tag directly.
To render an input tag you can use:
Tag t = new Tag();
t.setTagName("input");
t.setAttribute("type", "submit");
t.setAttribute("value", "Submit");
t.service(request, response);
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
Tag()
|
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String pName)
Returns the value of the specified attribute. |
java.util.Dictionary |
getAttributes()
Returns the Attributes dictionary for this tag. |
java.lang.String |
getTagName()
Returns the name of this tag or null if no name has been specified. |
void |
service(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pRes)
Renders the tag for the given request. |
void |
service(javax.servlet.ServletRequest pReq,
javax.servlet.ServletResponse pRes)
Vector off service requests to the dynamo specific routine. |
protected void |
serviceAttributes(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pRes)
Renders the attributes defined for this tag. |
void |
setAttribute(java.lang.String pName,
java.lang.Object pValue)
Sets the value of a specific attribute in the Attributes dictionary. |
void |
setAttributes(java.util.Dictionary pAttributes)
This sets the "Attributes" property for the Tag. |
void |
setTagName(java.lang.String pTagName)
Sets the name of this tag. |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public Tag()
Method Detail |
---|
public void setTagName(java.lang.String pTagName)
pTagName
- the name of the tag.public java.lang.String getTagName()
public void setAttributes(java.util.Dictionary pAttributes)
pAttributes
- the attributes dictionary.public java.util.Dictionary getAttributes()
public void setAttribute(java.lang.String pName, java.lang.Object pValue)
pName
- The name of the attributepValue
- the value of the attribute. If this value is null, the
attribute is deleted. If the attribute is an empty string, the attribute
displayed without the "=" sign.public java.lang.Object getAttribute(java.lang.String pName)
public void service(javax.servlet.ServletRequest pReq, javax.servlet.ServletResponse pRes) throws javax.servlet.ServletException, java.io.IOException
service
in interface javax.servlet.Servlet
service
in class javax.servlet.GenericServlet
javax.servlet.ServletException
java.io.IOException
public void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
protected void serviceAttributes(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |