<s:form action="XYZ" method="post">
<s:textfield name="sno" />
<s:textarea name="t" rows="2" cols="4" />
<!-- Here i want a button lets say -->
<s:button value="GET TEXT" />
<!--
which executes other action (not "XYZ" ) and fill the textarea based on the serial no value(sno).
-->
<s:submit value="submit" />
</s:form>
表
sno text
提交表单时,应插入新行。 Action "XYZ"
这样做。
但是当我给现有的sno说“1”和onclick GET TEXT
按钮时,它不应该提交表单,而应该调用其他动作来填充textarea hsdjhjjsh
。
由于
答案 0 :(得分:0)
你不能使用纯HTML:输入类型按钮吗?
如果您不想提交,则可能不需要任何struts功能。