开发者

What is the use of "attribute" attribute of action node in struts-config.xml?

开发者 https://www.devze.com 2023-02-08 01:29 出处:网络
From the dtd definition of Struts-Config.xml ht开发者_开发知识库tp://struts.apache.org/1.x/struts-core/dtddoc/index.html

From the dtd definition of Struts-Config.xml ht开发者_开发知识库tp://struts.apache.org/1.x/struts-core/dtddoc/index.html

The action element describes an ActionMapping object that is to be used to process a request for a specific module-relative URI.

The following attributes are defined : attribute name of the request-scope or session-scope attribute that is used to access our ActionForm bean, if it is other than the bean's specified name. Optional if name is specified, else not valid.

I am confuse between the scope attribute and attribute attribute.

Where i can use attribute attribute ?

Please help me.


its same as plain request.setAttribute(obj , obj); or session.setAttribute(obj,obj)

It is used to display data on the view typically jsp using jstl or other struts specific taglibs

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号