View Full Version : Passing arguments to Spring controller

26 Feb 2009, 7:25 AM
Hello Folks, I'm trying to pass attributes throught post method to Spring Controller, my ExtJS button contain the next code:


submitFilters = dr.addButton({

handler: function() {
url: '/Statistics.htm',
params: {
beginDate: dtfBeginDate.getValue(),
endDate: dtfEndDate.getValue(),
beginISGroup: cboBeginISGroup.getValue(),
endISGroup: cboEndISGroup.getValue()
waitMsg: 'Consultando datos ...',
failure: function (form, action) {
title: 'Error en la consulta',
msg: 'Se produjo un error mientras se consultaba la Base de Datos',
buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR

The Spring Controller code is:



ModelAndView handleRequestInternal(HttpServletRequest request,

HttpServletResponse response) throws Exception {

ModelAndView mv = new ModelAndView(successView);

HttpSession session = request.getSession();

if(user != null && session != null) {
String sBeginISGroup = (String) session.getAttribute("beginISGroup");
String sEndISGroup = (String) session.getAttribute("endISGroup");
String sBeginDate = (String) session.getAttribute("beginDate");
String sEndDate = (String) session.getAttribute("endDate");

The session not is null, but the all attibutes are null when I look with the debugger. In addition, I can see on firebug, in the send tab this attributes filled with values, althought this values appear two times.

Somebody can I help me please?

Thanks in advance!!.