uk.co.lakesidetech.springxmldb.spring.web.tiles
Class XPathAttributesSubTilesComponent
java.lang.Object
org.apache.struts.tiles.ControllerSupport
org.springframework.web.servlet.view.tiles.ComponentControllerSupport
uk.co.lakesidetech.springxmldb.spring.web.tiles.AbstractXMLDBTilesComponent
uk.co.lakesidetech.springxmldb.spring.web.tiles.XPathAttributesSubTilesComponent
- All Implemented Interfaces:
- org.apache.struts.tiles.Controller
- public class XPathAttributesSubTilesComponent
- extends AbstractXMLDBTilesComponent
This tiles component performs a xpath query on a collection in an xml datbase but
also subsitutes any $variables found in the xpath string with provided tiles
context attributes defined in the definitions file
- Author:
- Stuart Eccles
- See Also:
XPathRequestParamSubXMLDBController
Method Summary |
protected org.w3c.dom.Node |
performForXML(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.Map attributes)
implementing method for a tiles component to retrive XML from the xml database |
Methods inherited from class org.springframework.web.servlet.view.tiles.ComponentControllerSupport |
execute, getApplicationContext, getMessageSourceAccessor, getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, perform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathAttributesSubTilesComponent
public XPathAttributesSubTilesComponent()
performForXML
protected org.w3c.dom.Node performForXML(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.Map attributes)
throws java.lang.Exception
- Description copied from class:
AbstractXMLDBTilesComponent
- implementing method for a tiles component to retrive XML from the xml database
- Specified by:
performForXML
in class AbstractXMLDBTilesComponent
- Parameters:
request
- The HttpServletRequestresponse
- The HttpServletResponseattributes
- a map of attributes set by the tiles context
- Returns:
- A map result of xml results with resource id and result of query
- Throws:
java.lang.Exception
- on anything going wrong