Struts 1.3:StrutsConfig.xml内的动作标签中的名称和属性之间的区别? [英] Struts 1.3 : Difference between name and attribute attributes in action tag within StrutsConfig.xml?

查看:86
本文介绍了Struts 1.3:StrutsConfig.xml内的动作标签中的名称和属性之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

StrutsConfig.xml内动作标签中的 name attribute 属性之间有什么区别?

What is the difference between name and attribute attributes in action tag within StrutsConfig.xml ?

推荐答案

  • name是表单bean(某种形式的ActionForm)的名称.
  • attribute是会话或请求中表单Bean的名称,如果它不同于名称​​ .
    • name is the name of the form bean (an ActionForm of some sort).
    • attribute is the name of the form bean in the session or request if it's different than the name.
    • 这篇关于Struts 1.3:StrutsConfig.xml内的动作标签中的名称和属性之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆