You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michal Maczka <mm...@interia.pl> on 2003/06/03 19:21:20 UTC

Reusing the same HTML Form for many actions

Can somebody explain me what is the best practice if I want to use the same
form (JSP page/fragment)
for executing different action.

For example I want to have "add" and "edit" action which will be processed
differently,
but the form for entering data will be the same.

I tried to use form as >>Tiles<< and do something like:

<html:form action="<tiles:getAsString name="action"/>" focus="name"
onsubmit="return validateXXForm(this)">

but this does not seems to works.

any suggestions?

Michal




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org