Caros, estou tentando fazer com que o JavaScript defina qual o endereço que será atribuído ao HREF de um link com base no que foi selecionado em um RadioButton. Nem sei se é possível, mas tentei fazer assim mesmo. Segue abaixo o código da página index.jsp que eu fiz. O erro começa na linha 20.
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style>
a:link {text-decoration:none; font: 12pt 'Verdana'; color:#336699}
a:visited {text-decoration:none; font: 12pt 'Verdana';color:#336699}
a:hover {text-decoration:none; color:#FF9900; background: #000099}
</style>
<title>Index</title>
</head>
<body>
<center><h2>GERENCIAMENTO DE CHAMADOS</h2></center>
<br><br><br>
PARÂMETROS DE BUSCA:<br><br>
<input type="radio" name="radio" value="pessoa">Pessoa</input>            
<input type="radio" name="radio" value="chamado">Chamado</input><br><br>
<a ><% if (request.getParameter("radio").equals("pessoa")){ %>
href="inserepessoa.jsp" <%}%>
<%if (request.getParameter("radio").equals("chamado")){ %>
href="inserechamado.jsp" <%}%>>INSERIR</a>
<a >CONSULTAR</a>
<a >ALTERAR</a>
<a >EXCLUIR</a>
</body>
</html>