Extjs传递参数,如下如,后台Action如何接收?

2025-05-14 23:15:13
推荐回答(3个)
回答1:

在你的action中定义三个这样的属性
private String id;
private String password;
private String username;
然后加上get set方法
下面就可以直接使用了

回答2:

先 拿到Request,然后String id = request.getParameter('id');当然你用struts 的话 可以前台传对象过去的 ,后台直接用对象接受

回答3:

request.getParameter("id");
request.getParameter("username");
request.getParameter("password");