gpt4 book ai didi

struts-1 - 在Struts 1中,标签的Type属性的默认值是多少?

转载 作者:行者123 更新时间:2023-12-05 06:42:08 24 4
gpt4 key购买 nike

在 Struts 1 中,如果 <action> 的类型属性标签没有值(value),这是什么意思? type 是否有默认值?未明确指定时使用的属性。

我基本上是想弄清楚以下操作的作用;如您所见,它没有 type属性;它只有 pathforward属性:

<action path="/a/b/comp" forward="/components/d/my-comp.jsp">
</action>

最佳答案

上面包含的操作只是从 /a/b/comp.do 重定向到/components/d/my-comp.jsp。它是以下内容的简写:

<action path="/a/b/comp" 
parameter="/components/d/my-comp.jsp"
type="org.apache.struts.actions.ForwardAction">
</action>

因此,对于您包含的类型属性的操作是 org.apache.struts.actions.ForwardAction

关于struts-1 - 在Struts 1中,<action>标签的Type属性的默认值是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38382224/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com