<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="parser.Parse" %>
<% Parse p= new Parse(); %>


<!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=UTF-8">

<title>Crea Audio</title>
</head>
<body onload="document.cercatag.reset();">
<form action="modifica.jsp" method="POST" name="cercatag">

<h1>JSP Page</h1>

<h2>Inserisci il testo da pronunciare per ogni tag:</h2>
</br>



<% String path=request.getParameter("directory")+"\\"+reques t.getParameter("path");
p.cercatag(path);
%>

<% int dimensione=p.names.size();

for(int i = 0 ; i < p.names.size(); i++ ) {

%>
<h2>Tag <%= p.tagname.get(i) %></h2>
<h3>Name: <%= p.names.get(i)%>
Type: <%= p.type.get(i)%> </h3>
<%= i %>
<input type="text" name="<%= i %>" id="<%= p.tagname.get(i) %>" > </input>


<input style="display:none;" type="text" value="<%= p.tagname.get(i)%>" name="tagname<%= i %>"> </input>
<input style="display:none;" type="text" value="<%= p.names.get(i)%>" name="names<%= i %>"> </input>
<input style="display:none;" type="text" value="<%= p.type.get(i)%>" name="type<%= i %>" > </input>
<% } %>



</br>
</br>
<input style="display:none;" type="text" value="<%= dimensione %>" name="size" > </input>
<input style="display:none;" type="text" value="<%= request.getParameter("path")%>" name="path2"> </input>
<input style="display:none;" type="text" value="<%= request.getParameter("directory")%>" id="directory2" name="directory2"> </input>

<input type="submit" value="OK" name="conferma"> </input>
<input type="button" value="INDIETRO" onclick="history.go(-1)"> </input>

</form>
</body>

</html>


ecco questa è la seconda jsp.......la cerca tag trova i tag e salva tagname,name e type in oggetti di tipo Vector e poi con un for sparo tutto a video