java - Why get first parameter from request is wrong? -


i jsp page request jsp page parameters,the code is:

url="/hotmoduel/baseinfo/siteinfo/commonplaceandunit/commonplaceandunitstatistics.jsp?keytype=securitykeyother&sid=e13048f7-d253-4d50-acec-2981a5536d48"; $.ajax({         url : url,         cache: false,         success : function(result) {             proccessloginresult(result,function(){                 $("#loading").hide();                 $("#contentdiv").html(result);                 setorgselect();                 setcrumbs(srcobj);             });         }     }); 

in commonplaceandunitstatistics.jsp file,i use request parameter,code is:

<% string keytype = request.getparameter("keytype"); string sid= request.getparameter("sid"); %> 

got keytype's value is

securitykeyothersid=e13048f7-d253-4d50-acec-2981a5536d48

the sid's value

e13048f7-d253-4d50-acec-2981a5536d48

but parameter in filter:

public void dofilter(servletrequest servletrequest,             servletresponse servletresponse, filterchain chain)             throws ioexception, servletexception {     string keytype= request.getparameter("keytype");     string sid= request.getparameter("sid"); } 

the tow parameter's value right,why this?

could try on ajax request. change url : url="/hotmoduel/baseinfo/siteinfo/commonplaceandunit/commonplaceandunitstatistics.jsp. , put parameter body of ajax request that:

$.ajax({         url : url,         data : { keytype: securitykeyother, sid: e13048f7-d253-4d50-acec-2981a5536d48},         cache: false,         success : function(result) {             proccessloginresult(result,function(){                 $("#loading").hide();                 $("#contentdiv").html(result);                 setorgselect();                 setcrumbs(srcobj);             });         }     }); 

Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -