ok I canged my code around...no more javascript...th e problem now is the 'weatherStae" parameter is passing 'null' in request.getPara meter...any suggestions??
1st jsp:
2nd jsp:
1st jsp:
Code:
<form name="form1" method="POST" action="/JAABA/jsp/cpanel/cp-weatherFive.jsp">
<label for="weatherState">State:</label>
<select name="weatherState" >
<% for (int i=0; i< theStates.size(); i++) { %>
<OPTION VALUE="<%=theStates.elementAt(i)%>"><%=theStates.elementAt(i)%></OPTION>
<%
}
%>
</select>
Code:
<%
System.out.println("error...: "+request.getParameter("weatherState"));//--this is coming back null??
String sValue = request.getParameter("weatherState");
Vector theCities = WeatherDAO.getWeatherCities(sValue);
%>
Comment