I do not believe that you are allowed to have nested forms in html (though
correct me if I'm wrong!).

Dave





"Marc Eckart" <[EMAIL PROTECTED]> on 06/06/2001 06:10:33 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  Problem with nested html:form



Hi,

i have two forms nested in the following way :

<html:form action="album.do">
<html:hidden property="action" value="deletePhotoList" />
<html:hidden property="forward" value='<%= actionForward %>' />
<html:hidden property="id" value='<%= album.getAlbumId() %>' />
<logic:iterate id="photo" name="album" property="photoList">
....
....
....
        <html:form action="movePhotoUp.do">
        <html:hidden property="action" value="movePhoto"/>
        <html:hidden property="direction" value="up"/>
        <html:hidden property="position" value='<%=
""+((Photo)photo).getPosition() %>'/>
        <html:image src="images/up.bmp" alt="Bild nach oben verschieben"/>
        </html:form>
....
....
</logic:iterate>
</html:form>

If I now press the inner Button the outer action "album.do"  with the property
action "deletePhotoList" is called instead of "movePhotoUp.do".
I have mapped album.do and movePhotoUp.do to the same formclass.

Can anybody help me ?

Thanx,

Marc
Hi,
 
i have two forms nested in the following way :
 
<html:form action="album.do">
<html:hidden property="action" value="deletePhotoList" />
<html:hidden property="forward" value='<%= actionForward %>' />
<html:hidden property="id" value='<%= album.getAlbumId() %>' />
<logic:iterate id="photo" name="album" property="photoList">
....
....
....
        <html:form action="movePhotoUp.do">
        <html:hidden property="action" value="movePhoto"/>
        <html:hidden property="direction" value="up"/>
        <html:hidden property="position" value='<%= ""+((Photo)photo).getPosition() %>'/>
        <html:image src="images/up.bmp" alt="Bild nach oben verschieben"/>
        </html:form>
....
....
</logic:iterate>
</html:form>
 
If I now press the inner Button the outer action "album.do"  with the property action "deletePhotoList" is called instead of "movePhotoUp.do".
I have mapped album.do and movePhotoUp.do to the same formclass.
 
Can anybody help me ?
 
Thanx,
 
Marc

Reply via email to