G
GuyBrush Treepwood
I'm using Struts to build a webapplication. Below is a snippet of code
from one of my jsp pages displays the folders of a user. In front of each
folder is a checkbox, so that all checked folders can be deleted at once.
I'm wondering, is it possible to have more than 1 submit button,
performing different actions on the same checkboxes. Like having a delete
button and an edit button.
<html:form action="/service/deleteFolders" method="POST">
<fieldset>
<ul id="folders">
<logic:iterate id="folder" name="folderList" >
<li>
<html:multibox name="treeLevelBean" property="checkedFolders" >
<bean:write name="folder" property="folderId" />
</html:multibox>
<html:link page="/service/showTreeLevel.do"
paramId="currentFolderId" paramName="folder"
paramProperty="folderId">
<bean:write name="folder" property="foldername"/>
</html:link>
</li>
</logic:iterate>
</ul>
<html:submit value="Delete" />
</fieldset>
</html:form>
from one of my jsp pages displays the folders of a user. In front of each
folder is a checkbox, so that all checked folders can be deleted at once.
I'm wondering, is it possible to have more than 1 submit button,
performing different actions on the same checkboxes. Like having a delete
button and an edit button.
<html:form action="/service/deleteFolders" method="POST">
<fieldset>
<ul id="folders">
<logic:iterate id="folder" name="folderList" >
<li>
<html:multibox name="treeLevelBean" property="checkedFolders" >
<bean:write name="folder" property="folderId" />
</html:multibox>
<html:link page="/service/showTreeLevel.do"
paramId="currentFolderId" paramName="folder"
paramProperty="folderId">
<bean:write name="folder" property="foldername"/>
</html:link>
</li>
</logic:iterate>
</ul>
<html:submit value="Delete" />
</fieldset>
</html:form>