Hello Marc,
Thursday, June 07, 2001, 2:20:28 AM, you wrote:
>>I do not believe that you are allowed to have nested >forms in html (though
>>correct me if I'm wrong!).
>>
>>Dave
ME> But we need something like nested forms, because we have actions for a list
ME> of objects and actions for a single one of these objects.
ME> Do you have any idea how to realize it in an other way.
I think you can use such approach as -
<html:form name="albumForm" action="album.do">
<html:hidden name="albumForm" property="action" value="deletePhotoList" />
<html:hidden name="albumForm" property="forward" value='<%= actionForward %>' />
<html:hidden name="albumForm" property="id" value='<%= album.getAlbumId() %>' />
<logic:iterate id="photo" name="albumForm" property="photoList">
....
....
....
<html:form name="movePhotoForm" action="movePhotoUp.do">
<html:hidden name="movePhotoForm" property="action" value="movePhoto"/>
<html:hidden name="movePhotoForm" property="direction" value="up"/>
<html:hidden name="movePhotoForm" property="position" value='<%=
""+((Photo)photo).getPosition() %>'/>
<html:image src="images/up.bmp" alt="Bild nach oben verschieben"/>
</html:form>
....
....
</logic:iterate>
</html:form>
Insert direct references to the form object in tags and behavior of
your code will be more definitely.
--
Best regards,
Oleg mailto:[EMAIL PROTECTED]