struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nadja Senoucci <>
Subject Re: Re[6]: Question about the form tag
Date Wed, 16 Jul 2003 14:23:38 GMT

>    my test looks like:
><html:form action="change" >
> <html:text property="name" />
> <html:submit property="f1" >Senden 1</html:submit>
><html:form action="change" >
> <html:text property="name" />
> <html:submit property="f2" >Senden 1</html:submit>
>Hitting button 1 gives me the text from the first and hitting button 2
>gives me the text from the second form. Whats the difference to your

My difference is with the buttons. They also have the same name. I have 4
different submit buttons (actually 5 but only three get displayed at one
time) for every object and two more for the whole form. They have each
different names but the names do not change for different objects. And
since my action looks like this:

	//do change stuff
}else if(request.getParameter("deinventarisieren")!=null){
	//deactivate object
}else if(request.getParameter("reinventarisieren")!=null){
	//reactivate object
}else if(request.getParameter("print_geraet")!=null ||
	//print an object (two different print views)
}else if(request.getParameter("print_multiple_geraete")!=null ||
	//print multiple objects (two different print views)

I cannot really change the button names for each object, else I'd never
what to look for in the request...

Or am I doing things too complicated here?


Nadja  Senoucci
Universitaet Hamburg
Zentrum für Molekulare Neurobiologie
Service-Gruppe EDV
Falkenried 94
20251 Hamburg
Tel.:040 - 428 - 03 - 6619
Fax.:040 - 428 - 03 - 6621

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message