@Override
public PageContext formSendedEvent(PageContext pc, HttpServletRequest request, HttpServletResponse response)
{
DataAgent conn;
WeatherManager wm;
Weather weather = new Weather();
weather.setCityName(HttpRequestUtils.getValue(request, "txtName"));
weather.setTempMin(HttpRequestUtils.getInt(request, "txtTMin"));
weather.setTempMax(HttpRequestUtils.getInt(request, "txtTMax"));
weather.setPrecipitation(HttpRequestUtils.getInt(request, "txtPre"));
try
{
conn = DataFactory.getInstance(getWorkspace(), "cosmo.server");
wm = new WeatherManager(conn);
wm.add(weather);
response.sendRedirect("GridPage");
}
catch (Exception ex)
{