在struts中,假设有一个对数据库中一张表的增删改查的操作,你是写一个action还是写多个action?为什么?
第1题:
3、在 struts 开发中有页面内容: < a herf=”oprator.do?method=add”> 添加</a> < a herf=”oprator.do?method=modify”> 修改</a> 添加 修改 完成 struts-config.xml 的配置 <action path="/base" type="struts.action.BaseAction" /> 在下划线上填入()。
A.parameter="action"
B.parameter="method"
C.attribute="method"
D.attribute="action"
第2题:
15、在 Struts应用的控制器中只包含Action、ActionServlet两种组件()
第3题:
14、struts1 要求 Action 类继承 struts1 框架中的 Action 父类, struts2 中则不一定需要继承,可 以是 POJO类()
第4题:
7、Struts2 的 Action 类中有多个方法时,可以使用 <action> 标签的(C)属性来指定需要调用的方法。
A.name
B.class
C.method
D.type
第5题:
Intent 只能有一个 action,而 Intent 过滤器可有多个 action