struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ALAMI Ahmed - BOR <Ahmed.AL...@sema.fr>
Subject RE: html:form problem
Date Wed, 17 Oct 2001 13:45:22 GMT
Hello everybody

	I have a form in witch i created a multibox, i want that after
checking some boxes to execute an action not the submit one and in the same
time to save the attributes of my initial form?

Thanks.

Ahmed ALAMI
Stagiaire
 

8, rue Gustave Hertz - 33600 Pessac
* 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
* aalami@slb.com



-----Message d'origine-----
De : emmanuel.boudrant [mailto:b7st@yahoo.fr]
Envoyé : mercredi 17 octobre 2001 14:58
À : struts-user@jakarta.apache.org
Objet : Re: html:form problem


 --- ALAMI Ahmed - BOR <Ahmed.ALAMI@sema.fr> a écrit :
> Hello everybody
> 
> 	I have two questions.
> IS it possible to have more than one Submit Button
> in one form, if yes how?

Yes it is possible, you can change the value attribute
to identify the clicked button.
ex:
in jsp

<html:submit property="button" value="modifier"/>
<html:submit property="button" value="supprimer"/>

in action:

String buttonClicked = request.getParemeter("button");


> Is it possible to have a submit in the form of a
> link (not a button), if yes
> how

Yes, with javascript:

<a href="document.formName.submit()">Submit</a>

> 
> Thanks.
> 
> Ahmed ALAMI
> Stagiaire
>  
> 
> 8, rue Gustave Hertz - 33600 Pessac
> * 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
> * aalami@slb.com
> 
> 
>  

___________________________________________________________
Un nouveau Nokia Game commence. 
Allez sur http://fr.yahoo.com/nokiagame avant le 3 novembre
pour participer à cette aventure tous médias.

Mime
View raw message