public class Tag
extends javax.servlet.GenericServlet
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);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
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.
|
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