◎筱米加步枪◎.Blog

Happy coding

ExtJs提交表单页面总回调failure解决方法

筱米加步枪 posted @ 2010年11月09日 08:26 in [ 前端技术 ] with tags extjs json , 3030 阅读

记得这个问题搞了一个多小时,真悲剧...

原因:回调success或failure是根据返回来的参数的json串中的"success"的值来决定的

例如返回:{"success":true}则调用success,如果返回{"success":false}则调用failure,因此在与Strust2中的Action中加入属性boolean success即可,并且需将其序列化为名字为"success",如下:

	@JSON(name = "success")
	public boolean isSuccess() {
		return success;
	}

Action可通过设定success的属性值来控制是返回success或failure

boardmodelpaper.com 说:
2024年1月23日 20:32

The Board model paper" typically refers to a sample or model question paper that is designed by educational boards or institutions for various exams. These papers serve as practice material for students preparing for exams, providing them with an idea of the question format, difficulty level, and the type of content that may be covered in the actual examination. boardmodelpaper.com Model papers are usually created for specific subjects or courses. They cover a range of topics and chapters that students are expected to have studied during the academic term. Students often use these educational board model papers as an integral part of their exam preparation strategy, helping them familiarize themselves with the exam pattern and refine their understanding of the subject matter.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter