日期:2014-05-16 浏览次数:20737 次
public String jqajax(){
System.out.println("执行ajax请求");
return "ajaxRequire";
}
<action name="printAction" class="controller.Login" method="jqajax">
<result name="ajaxRequire">/admin/JQueryAjax.jsp</result>
</action>
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional //EN">
<html>
<head>
<title>ajax示例</title>
<meta charset="utf-8">
<link rel=stylesheet href="../style/mystyle.css" type="text/css"/>
</head>
<body style="background-color:skyblue">
<center>JBOSS 控制台输出"执行ajax请求"</center>
</body>
</html>