在谈到 Java 和 Struts 时,我是个菜鸟(我觉得自己像 Java 世界中的 .Net 男孩)。
action 元素的 input 属性是做什么用的?所以在下面的例子中,输入是 someinput.jsp。
<action path="/somepath"
type="SomeAction"
name="SomeForm"
scope="session"
input="someinput.jsp">
最佳答案
如果表单bean SomeForm
返回验证错误,它将返回页面someinput.jsp
。引用 corresponding DTD :
Valid only when "name" is specified. Required if "name" is specified and the input bean returns validation errors. Optional if "name" is specified and the input bean does not return validation errors.
关于java - struts Action 映射 Action 输入属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6644861/