org.apache.struts.taglib.bean
Class StrutsTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.struts.taglib.bean.StrutsTag
All Implemented Interfaces:
Serializable, IterationTag, Tag
Direct Known Subclasses:
ELStrutsTag

public class StrutsTag
extends TagSupport

Define a scripting variable that exposes the requested Struts internal configuraton object.

Version:
$Rev: 471754 $ $Date: 2004-10-16 12:38:42 -0400 (Sat, 16 Oct 2004) $
See Also:
Serialized Form

Field Summary
protected  String formBean
          The name of the ActionFormBean object to be exposed.
protected  String forward
          The name of the ActionForward object to be exposed.
protected  String id
          The name of the scripting variable that will be exposed as a page scope attribute.
protected  String mapping
          The name of the ActionMapping object to be exposed.
protected static MessageResources messages
          The message resources for this package.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
StrutsTag()
           
 
Method Summary
 int doStartTag()
          Retrieve the required configuration object and expose it as a scripting variable.
 String getFormBean()
           
 String getForward()
           
 String getId()
           
 String getMapping()
           
 void release()
          Release all allocated resources.
 void setFormBean(String formBean)
           
 void setForward(String forward)
           
 void setId(String id)
           
 void setMapping(String mapping)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

protected static MessageResources messages
The message resources for this package.


id

protected String id
The name of the scripting variable that will be exposed as a page scope attribute.


formBean

protected String formBean
The name of the ActionFormBean object to be exposed.


forward

protected String forward
The name of the ActionForward object to be exposed.


mapping

protected String mapping
The name of the ActionMapping object to be exposed.

Constructor Detail

StrutsTag

public StrutsTag()
Method Detail

getId

public String getId()
Overrides:
getId in class TagSupport

setId

public void setId(String id)
Overrides:
setId in class TagSupport

getFormBean

public String getFormBean()

setFormBean

public void setFormBean(String formBean)

getForward

public String getForward()

setForward

public void setForward(String forward)

getMapping

public String getMapping()

setMapping

public void setMapping(String mapping)

doStartTag

public int doStartTag()
               throws JspException
Retrieve the required configuration object and expose it as a scripting variable.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Throws:
JspException - if a JSP exception has occurred

release

public void release()
Release all allocated resources.

Specified by:
release in interface Tag
Overrides:
release in class TagSupport


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.