Developer manual

include

Include the output of a url.

Updated: Type: springtag

Method

<include option="value"/>

Current

Request Attributes

  Attribute Type Description Default Required?
current path string The path to a valid xml resource
Allowed values: Valid URL
• Path should be relative to the current domain
Yes
current type option Controls how the result of the URL is processed.
Allowed values: xml, text
xml

Examples

#1

Request

<include option="/date/date/19701010/"/>

Response

<?xml version="1.0"?>
<datapackets>
    <now>
        <servertime>1329198071</servertime>
        <timezone>+0800</timezone>
        <date>
            <rfcdate>Sat, 10 Oct 1970 12:00:00 +0800</rfcdate>
            <unixdate>24336000</unixdate>
            <revdate>19701010</revdate>
            <year>1970</year>
            <n-month>10</n-month>
            <n-day>10</n-day>
            <month>October</month>
            <day>Saturday</day>
            <week>41</week>
            <suffix>th</suffix>
            <hour>12</hour>
            <minute>00</minute>
            <meridiem>am</meridiem>
        </date>
        <time>12:00:00 am</time>
        <agetime>1304862071</agetime>
    </now>
    <calendar>
        <month>
            <date>23558400</date>
            <year>1970</year>
            <n-month>10</n-month>
            <month>October</month>
            <start>5</start>
            <startmonday>4</startmonday>
            <total>35</total>
            <totalmonday>34</totalmonday>
            <overflow>0</overflow>
            <overflowmonday>6</overflowmonday>
            <count>31</count>
            <prev>1970-09</prev>
            <next>1970-11</next>
            <today>2012-02-14</today>
        </month>
    </calendar>
</datapackets>