<%@ page import="java.io.*,
                 java.util.*,
				 java.net.URL,
				 com.plumtree.remote.prc.*,
				 com.plumtree.remote.prc.search.*,
				 com.plumtree.openfoundation.util.*"
%>
 
<html>
<head>
<title>Search Properties</title>
</head>
<body>
<%
Map map = (Map) session.getAttribute("resultsMap");
if (null == map)
{
  out.println("unable to retrieve map of results. Try running the search again");
  return;
}
String ptrank = request.getParameter("ptrank");
if (null == ptrank)
{
  out.println("no rank supplied- this page can only be accessed from the simple_search page");
  return;
}

IPortalSearchResult result = (IPortalSearchResult) map.get(ptrank);
if (null == result)
{
 out.println("unable to find search result. Try running the search again");
}
	out.println("<h3> Properties</h3>");
	out.println("<table border=1>");
	out.println("<tr><td>Name</td><td>" + result.getName() + "</td></tr>");
	out.println("<tr><td>Rank</td><td>" + result.getRank() + "</td></tr>");	
	out.println("<tr><td>Class ID</td><td>" + result.getClassID() + "</td></tr>");
	out.println("<tr><td>Object ID</td><td>" + result.getObjectID() + "</td></tr>");	
	out.println("<tr><td>Created Date</td><td>" + result.getCreated() + "</td></tr>");
	out.println("<tr><td>Last Modified Date</td><td>" + result.getLastModified() + "</td></tr>");
	out.println("</table>");

%>
</body>
</html>
