in second jsp file u have to write the code following<%for(int i=0;i<x.length;i++){%><input type="hidden" name="city" value="<%=x[i]%>"><%}%>in third jsp file u have to write the following codex[]=request.getParameterValue("city");