WebObjects 5.2.4

com.webobjects.jspservlet
Class WODirectActionTag

java.lang.Object
  extended byBodyTagSupport
      extended bycom.webobjects.jspservlet.WOTag
          extended bycom.webobjects.jspservlet.WODirectActionTag

public class WODirectActionTag
extends com.webobjects.jspservlet.WOTag

This is a regular JSP taglib handler that enables the use of a WOComponent within a JSP. Please see WOtaglib_1_0.tld for the most authoritative definition of the tag library, including the description of this class. This tag handler has the following tag attributes:


This tag's body content is labelled "jsp". What this means is that its body should be parsed for additional tags. For this version, the body contains one or more WOExtraHeaderTag or WOFormValueTag.

See Also:
WODirectAction, WOExtraHeaderTag, WOFormValueTag, Serialized Form

Constructor Summary
WODirectActionTag()
           
 
Method Summary
 int doEndTag()
          Standard method to end the tag.
 int doStartTag()
          Standard method to start using the tag.
 void setActionName(String name)
          Sets the attribute actionName for this tag.
 void setBodyContentOnly(boolean bodyContentOnly)
          Sets the attribute bodyContentOnly for this tag.
 void setClassname(String className)
          Sets the attribute className for this tag.
 void setClassName(String className)
          Sets the attribute className for this tag.
 void setContentStream(InputStream is)
          Sets the content of the WOResponse as seen by the Direct Action.
 void setExtraHeader(String key, String value)
          Sets a key-value pair to be set as an extra HTTP header to either the WOComponent or the Direct Action.
 void setFormValue(String key, String value)
          Sets a key-value pair to be passed to the Direct Action as a form value in the queryString.
 void setMergeResponseHeaders(boolean mergeResponseHeaders)
          Sets the attribute mergeResponseHeaders for this tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WODirectActionTag

public WODirectActionTag()
Method Detail

doEndTag

public int doEndTag()
             throws JspException
Standard method to end the tag.

Returns:
EVAL_PAGE, to ensure that the rest of the JSP gets evaluated
Throws:
JspException

doStartTag

public int doStartTag()
               throws JspException
Standard method to start using the tag.

Returns:
EVAL_BODY_TAG, to ensure that the tag body is evaluated, as it might contain one or more formValues or extraHeaders
Throws:
JspException
See Also:
WOFormValueTag, WOExtraHeaderTag

setActionName

public void setActionName(String name)
Sets the attribute actionName for this tag. See the class description for more details. This is called by the servlet container framework to pass in the value given the JSP.


setContentStream

public void setContentStream(InputStream is)
Sets the content of the WOResponse as seen by the Direct Action. This is optional.

Parameters:
is - the InputStream representing the content

setFormValue

public void setFormValue(String key,
                         String value)
Sets a key-value pair to be passed to the Direct Action as a form value in the queryString.

Parameters:
key - the key of the form value
value - the value of the form value

setBodyContentOnly

public void setBodyContentOnly(boolean bodyContentOnly)
Sets the attribute bodyContentOnly for this tag. This is called by the servlet container framework to pass in the value given the JSP.

Parameters:
bodyContentOnly - indicates if only the WOResponse body content is required; the HTML headers will be stripped off if this is true; default is true

setClassName

public void setClassName(String className)
Sets the attribute className for this tag. See the class description for more details. This is called by the servlet container framework to pass in the value given the JSP.

Parameters:
className - the class name of the WOComponent or Direct Action

setClassname

public void setClassname(String className)
Sets the attribute className for this tag. See the class description for more details. This is called by the servlet container framework to pass in the value given the JSP.

Parameters:
className - the class name of the WOComponent or Direct Action

setExtraHeader

public void setExtraHeader(String key,
                           String value)
Sets a key-value pair to be set as an extra HTTP header to either the WOComponent or the Direct Action. Passing a null object will cause the appropriate existing header to be removed from the request.

Parameters:
key - the header key
value - the value of the header

setMergeResponseHeaders

public void setMergeResponseHeaders(boolean mergeResponseHeaders)
Sets the attribute mergeResponseHeaders for this tag. See the class description for more details. This is called by the servlet container framework to pass in the value given the JSP.


Last updated Wed May 25 10:47:15 PDT 2005.

Copyright © 2005 Apple Computer, Inc.