请问<action
attribute="TestForm"
input="/hello.jsp"
name="TestForm"
path="/HelloWorld"
type="hello.personbeanAction">
<forward name="Testok" path="/hello.jsp" redirect="true" />
</action>里面的每一项都表示什么?刚学struts
attribute="TestForm"
input="/hello.jsp"
name="TestForm"
path="/HelloWorld"
type="hello.personbeanAction">
<forward name="Testok" path="/hello.jsp" redirect="true" />
</action>里面的每一项都表示什么?刚学struts
attribute="TestForm"
input="/hello.jsp" 跳转失败返回页面
name="TestForm" form实例名
path="/HelloWorld" 跳转路径
type="hello.personbeanAction"> 处理的action类
<forward name="Testok" path="/hello.jsp" redirect="true" />action处理中的跳转路径
</action>//???
attribute="TestForm"
input="/hello.jsp" 处理失败后跳转到的页面
name="TestForm" actionform的一个实例,用来获取你的表单信息
path="/HelloWorld" 当URL末尾为/HelloWorld结尾时,就调转到这个action
type="hello.personbeanAction"> 处理的action类
<forward name="Testok" path="/hello.jsp" redirect="true"/>action处理中跳转路径,属于局部跳转
</action>
* Returns the request-scope or session-scope attribute name under which our
* form bean is accessed, if it is different from the form bean's
* specified <code>name</code>.
* @return attribute name under which our form bean is accessed.
*/
public String getAttribute() {
if (this.attribute == null) {
return (this.name);
} else {
return (this.attribute);
}
}
贴一段struts的代码吧,其他的也不说了
也没学过struts