java - POST Request Parameter Loss -


client code

function call()  {     var value = $('input[name=form]:checked').val();     if (typeof(value)=='undefined')     {         alert('select 1 record');         return false;     }     else     {         $("#bean\\.id").val(value.split("@@")[0]);         var id = $("#bean\\.id").val();         $.post("search.do", {'id': id},         function(data){          });     } } <s:hidden name="bean.id" id="bean.id" /> <s:iterator var="form" value="#request.list" status="offset"> <input type="radio" name="form" value="${form.id}@@${form.status}"></input> </s:iterator> 

server code struts2 config xml

<action name="search" class="<action name>" method="search">     <result name="success" type="json">         <param name="includeproperties">returnstring</param>     </result> </action> 

java action function

public string search() throws exception {     string id_server = context.getrequest().getparameter("id");     // stuff         return success; } 

using websphere 8.5.0.4.

it seems request parameter not existed.
(id_server=null)
have idea why happen?
have other places using similar code without problem.

i have failed re-produce problem. testing environment websphere 8.5.5.4.
not sure if websphere problem problem area using 8.5.0.4 (production environment).

does have idea problem? want know reason may need explain.
many

by default servers put restriction on size of post request in tomcat default 2mb. if post request size exceeds size, request parameters discarded server. may check https://serverfault.com/questions/311610/how-to-increase-the-size-of-http-post-request-in-websphere change websphere.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -