我创建Struts 2的形式,使用下面的代码:的Struts 2 - 生成表单动作
<s:form id="form" onSubmit="getParameters();">
我不明白为什么产生的下列之一:
<form id="form" name="form" action="/Projet/ListAction.action" method="post" onSubmit="return getParameters();">
这里是我的struts.xml
<action name="ListBrochures" class="fr.web.actions.ListAction" method="execute">
<result name="success">listAction.jsp</result>
</action>
为什么我有一个名为ListAction.action的操作。我的目标不是提交表单,而是发送Ajax请求。因此,在我的Ajax调用之前调用此操作时,这会给我的项目带来麻烦。 我只想让Struts不会在我的表单中生成动作。我没有指定任何行动。 感谢您的帮助。
我相信它是从当前one.set'theme = simple'像'
' –