<%-- $HeadURL$ --%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="java.util.HashMap" %> <% String[] geomTypes = ((String)request.getParameter( "geomTypes" )).split( ";" ); HashMap geomTypeToLabel = new HashMap(3); geomTypeToLabel.put( "POINT", "Point" ); geomTypeToLabel.put( "LINESTRING", "Line" ); geomTypeToLabel.put( "POLYGON", "Polygon" ); %> <%@page import="java.util.HashMap"%>
<% // only write radio buttons if more than one geometry type for( int i = 0; i < geomTypes.length && geomTypes.length > 1 ;i++){ %> onclick="setGeometryType(this);"/><%= geomTypeToLabel.get( geomTypes[i] ) %>
<% } %>