摘要:
StrutsApacheBeanJSPServlet attribute: 这个属性用来指定ActionForm保存到指定上下文时所使用的属性名。如果不指定attribute属性的值,将使用name属性的值作为保存时的属性名。也就是说,attribute属性的默认值就是name属性的值。 class 阅读全文
posted @ 2016-12-26 09:10
唯一520
阅读(278)
评论(0)
推荐(0)
摘要:
众所周知,默认条件下,在浏览器输入indexAction!execute.action,便会执行indexAction类里的execute方法,这样虽然方便,但可能带来安全隐患,通过url可以执行Action中的任意方法。 想要禁止调用动态方法,则要在struts.xml中通过constant元素将 阅读全文
posted @ 2016-12-26 09:07
唯一520
阅读(216)
评论(0)
推荐(0)

浙公网安备 33010602011771号