Q:WebX中URL路径解析规则?
A :
Q : WebX的Ajax支持?
A:通过Screen返回对象结果或者返回Json格式的Resposen对象,详细的内容见博客http://blog.csdn.net/fiboliu/article/details/50057147
这里给出一个Response示例:
public class {
@Autowired
private HttpServletResponse response;
public void execute() {
response.addHeader("Cache-Control", "no-cache");
response.setContentType("application/json");
PrintWriter out = response.getWriter();
boolean result = false;
//do
out.write(String.valueOf(result));
...
}
}