org.apache.taglibs.rdc.core
Class StrutsSubmitTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.apache.taglibs.rdc.core.StrutsSubmitTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class StrutsSubmitTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

Tag implementation of the <rdc:struts-submit> tag Collects data from the RDC layer and posts it according to the RDC-struts interface contract.

Author:
Rahul Akolkar

Field Summary
static java.lang.String ATTR_VIEWS_MAP
          Attribute name of map that will store form data from multiple submits this session
static java.lang.String ATTR_VIEWS_MAP_KEY
          Attribute name of key that will be used to retrieve form data for this submission
 
Constructor Summary
StrutsSubmitTag()
           
 
Method Summary
 void doTag()
          Collect data from the RDC layer and post it into the viewsMap according to the RDC-struts interface contract
static void populate(org.apache.struts.action.ActionForm formBean, javax.servlet.http.HttpServletRequest req, org.apache.struts.action.ActionErrors errors)
          Retrieve data posted to viewsMap for this request according to the RDC-struts interface contract, and populate the ActionForm using this data.
 void setClearlist(java.lang.String clearlist)
          Set the clearlist
 void setContext(javax.servlet.jsp.PageContext context)
          Set the page context
 void setDialogMap(java.util.Map dialogMap)
          Set the "dialogMap" object [of the host JSP]
 void setNamelist(java.lang.String namelist)
          Set the namelist
 void setSubmit(java.lang.String submit)
          Set the submit URI
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_VIEWS_MAP

public static final java.lang.String ATTR_VIEWS_MAP
Attribute name of map that will store form data from multiple submits this session

See Also:
Constant Field Values

ATTR_VIEWS_MAP_KEY

public static final java.lang.String ATTR_VIEWS_MAP_KEY
Attribute name of key that will be used to retrieve form data for this submission

See Also:
Constant Field Values
Constructor Detail

StrutsSubmitTag

public StrutsSubmitTag()
Method Detail

setSubmit

public void setSubmit(java.lang.String submit)
Set the submit URI

Parameters:
submit - The submit URI

setNamelist

public void setNamelist(java.lang.String namelist)
Set the namelist

Parameters:
namelist - The space-separated name list

setClearlist

public void setClearlist(java.lang.String clearlist)
Set the clearlist

Parameters:
clearlist - The space-separated clear list

setContext

public void setContext(javax.servlet.jsp.PageContext context)
Set the page context

Parameters:
context - The supplied page context

setDialogMap

public void setDialogMap(java.util.Map dialogMap)
Set the "dialogMap" object [of the host JSP]

Parameters:
dialogMap - The dialogMap object from the host JSP

doTag

public void doTag()
           throws java.io.IOException,
                  javax.servlet.jsp.JspException,
                  javax.servlet.jsp.JspTagException
Collect data from the RDC layer and post it into the viewsMap according to the RDC-struts interface contract

Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
java.io.IOException
javax.servlet.jsp.JspException
javax.servlet.jsp.JspTagException

populate

public static void populate(org.apache.struts.action.ActionForm formBean,
                            javax.servlet.http.HttpServletRequest req,
                            org.apache.struts.action.ActionErrors errors)
Retrieve data posted to viewsMap for this request according to the RDC-struts interface contract, and populate the ActionForm using this data.



Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.