ajax Submit Data to Background jsp Page and Page Jump Problem

  • 2021-07-12 05:13:26
  • OfStack

ajax submitting data to background jsp page and page jump problem

My logincheck. jsp page takes the parameter code:


String user=request.getParameter("user1");

String pwd=request.getParameter("pwd1");

login.jsp input  Take 2 What is the use of parameters ajax  Pass to logincheck.jsp


$.ajax({

type : "POST",

url : baseUrl+"m/module/querymodulebyname.do",

dataType:"json",

data:

{

modName:title

},

success : function(data){

//data = eval('('+data+')');

var result = data.rows[0];

$('#main-tab').tabs('close',title);

openPage(title,'',baseUrl+result.moUrl,null);

}

});

Note: type: Transport uses post

url: Address Data Transfer Struts

data: Transmission parameter modName (from random) action acquires plane title according to modname

success: Power return parameter data

Want to jump to the SUCcess side jump to the specified page

Thank you for reading, hope to help everyone, thank you for your support to this site!


Related articles: