MY CODE >> JSP BBYOpen Store Search
<!DOCTYPE html>
<!--
    Tommy Martin
    November 2013
    This is a basic HTML form that is used to retrieve data from a user.
-->
<html>
    <head>
        <title>Smart Homes Java Store Locator</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
    </head>
    <body>
        
        <div align="center">
            <form action="newjsp.jsp" method="post">
                <table cellspacing="5">
                    <tr>
                        <td colspan="2" align="center">
                            <h2>Smart Homes Java Store Locator</h2>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            Enter Your Zip Code: 
                        </td>
                        <td>
                            <input type="text" name="zip" value="" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            Enter the search radius in miles: 
                        </td>
                        <td>
                            <input type="text" name="dist" value="" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <input type="submit" value="Search" />
                        </td>
                    </tr>

                </table>
            </form>
        </div>
    </body>
</html>
<%-- 
    Document   : newjsp
    Created on : Nov 30, 2013, 8:41:46 AM
    Author     : Tommy Martin
    
    This JSP page uses the data gathered from the previous page to make a request on the
    BBYOpen server.  The server then returns XML which is formatted and displayed by the
    JSP.
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="javax.xml.parsers.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>

        <h2>Smart Homes Locator Results</h2>
            <c:import url="http://api.remix.bestbuy.com/v1/stores(area
                (${param.zip},${param.dist}))?show=storeId,name,distance,lat,lng
                &apiKey=fuzgmrj4nv8v9ummatn78m3k" var="message" />
            <x:parse var="a" doc="${message}" />
            <x:forEach var="current" select="$a/stores/store">
                <ul>
                    <li>
                        <b> Store ID: </b> <x:out select="$current/storeId" /> 
                            <br />
                        <b> Name: </b> <x:out select="$current/name" /> 
                            <br />
                        <b> Distance: </b> <x:out select="$current/distance" /> 
                            <br />
                        <b> Latitude: </b> <x:out select="$current/lat" /> 
                            <br />
                        <b> Longitude: </b> <x:out select="$current/lng" /> 
                            <br />
                    </li>
                </ul>
            </x:forEach>
        
    </body>
</html>