ある.jspページから別のページに配列またはリストを渡す方法を知りたいです。次に、この配列から値を取得して、それらをjavascript配列に割り当てます。ソースjspページが正しく構成されていると思いますが、2番目の.jspページの値を取得する方法を考えていました。
これは私のソース.jspファイルです:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Firstjsp</title>
</head>
<body>
<Form Method = "Post" Action = "Mapper.jsp">
<% String locations[] = {"Loan 1", "33.890542", "151.274856", "Address 1","true", "-35404.34"};
for (int i =0; i<locations.length; i++)
{
%>
<Input type = "Hidden" name = "loc" value = "<%= locations[i] %>">
<%
}
%>
</Form>
</body>
</html>