struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "emmanuel.boudrant" <b...@yahoo.fr>
Subject Re: html:form problem
Date Wed, 17 Oct 2001 12:58:13 GMT
 --- 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