Skip to content

Instantly share code, notes, and snippets.

@kasundharmadasa
Last active June 1, 2017 13:21
Show Gist options
  • Save kasundharmadasa/ee964a06333390e173188c65a988feac to your computer and use it in GitHub Desktop.
Save kasundharmadasa/ee964a06333390e173188c65a988feac to your computer and use it in GitHub Desktop.
<%@ page import ="java.util.*" %>
<!DOCTYPE html>
<html>
<body>
<center>
<h1>
Available Brands
</h1>
<%
List result= (List) request.getAttribute("brands");
Iterator it = result.iterator();
out.println("<br>We have <br><br>");
while(it.hasNext()){
out.println(it.next()+"<br>");
}
%>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment