|
$velocityTemplateUtility.getMenu($req,"| __TEXT__ | ","","1","6","")
|
|
$velocityTemplateUtility.getHeaderText($req,$res) |
) |
| $velocityTemplateUtility.getDisplay($req,'contact') |
|
| |
$velocityTemplateUtility.getMenu($req,"| __TEXT__ |
| |
","","8","0","")
|
|
Our community and school information data has a tremendous amount of information organized
by zip code or town.
Contact
us and we can provide you with the most current and relevant information
for your home search.
##get city state details from request query string##
#set($city = "Somers")
#set($state = $req.getAttribute("NY").replaceAll('_',' '))
## web service call to get the schools information ##
#set($url ="http://api.education.com/service/service.php?f=schoolSearch&sn=sf&key=0f7bbe01631e752c7354f51c75dbeb26&city=$city&state=$state&resf=json")
## if school information is not available display this message ##
#set($infoNotAvail = 'Information not available.')
#set($infoNotAvailFlag = 'true')
## url appender ##
#set($urlAppend = 'School_Report.htm')
## get the schools list with required data to display ##
#set($url = $url.replaceAll(" ","+"))
#set($schoolsList = $velocityTemplateUtility.getMoreSchoolInfo($req, $url))
#set($schoolNames = "")
#foreach($item in $schoolsList)
#if($schoolNames == "")
#set($schoolNames = $item.get("schoolname"))
#else
#set($schoolNames = $schoolNames+", "+$item.get("schoolname"))
#end
#end
|
|
|
|
|
|
|
|
| $velocityTemplateUtility.getTemplate($req,$res,'index.bottom.vm') |
|