Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Parameter Map is null after Ajax Request

Parameter Map is null after Ajax Request

2007-11-30       - By Propes, Barry L

 Back
Reply:     1     2     3  

do the logs have anything helpful at all?
Almost sounds as if you save "out of order" - say, skipping from set 2 to set 3
you get this error, where as saving the first set or all sets won't cause the
issue?

-- --Original Message-- --
From: Randeep Walia [mailto:fatpunjabi@(protected)]
Sent: Friday, November 30, 2007 5:03 PM
To: users@(protected)
Subject: Parameter Map is null after Ajax Request


Over a year ago, a user reported a problem with his Request parameter
map showing up null sporadically on his application:
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200601.mbox/%3C43D390A3
.7010902@(protected)%3E

I am suddenly seeing similar behavior with our AJAX-enabled web application.

We are using RedHat Linux with Tomcat 5.5 and JDK 1.5.

Our application loads sets of text area dynamically using AJAX
(controlled by the Prototype library). The user can choose to open one
or more sets of text data, edit them, and submit the changes using
AJAX. It normally works well, but I am seeing a problem with certain
sets.

Say I have several sets of text data. I load the third set
successfully and edit it. Saving Set 3 will demonstrate a problem
whereby the servlet that processes this request has an empty Parameter
map, despite their being a considerable amount of data being
transmitted. A different set, say set 2, submits this data just fine.

My first theory as to why this was happening was that some invalid
character or too much data was causing the parsing to fail, but I
found that loading both sets 2 and 3 together and then saving (which
saves both sets) rather bizarrely caused the problem to vanish. What
are the circumstances under which the Parameter map could come up null
like this?

I'm not sure what code to post since this is pretty standard stuff,
but here is the Submit function which uses Prototype:

function ajaxSend(inForm)
{
  //If there is no input get the first form on the document
  var ajxForm = (inForm)?inForm:getAjxForm();

  setAjaxStatus('Submitting');

  var submitter = new Ajax.Request(
      'EditPaper',
      {
          method: 'post',
          parameters: Form.serialize(ajxForm),
          onComplete: ajaxReportStatus,
          onFailure: ajaxReportError
      }
  );

  return false; //Stops the form from submitting
}

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.