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());
wm = new WeatherManager(conn);