struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Markert <>
Subject Re[8]: Question about the form tag
Date Wed, 16 Jul 2003 14:32:18 GMT
Hello Nadja,

 something like:

<html:form action="change" >
 <html:text property="name" />
 <html:submit property="f1a" >Senden A</html:submit>
 <html:submit property="f1b" >Senden B</html:submit>
 <html:submit property="f1c" >Senden C</html:submit>

<html:form action="change" >
 <html:text property="name" />
 <html:submit property="f2a" >Senden A</html:submit>
 <html:submit property="f2b" >Senden B</html:submit>
 <html:submit property="f2c" >Senden C</html:submit>


NS> Hello,

>>    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

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

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

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

NS> Or am I doing things too complicated here?

NS> Greetings,
NS> Nadja

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

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


+------- Quality leads ---------------------------------------+
| Dirk Markert            |
| Dr. Markert Softwaretechnik AG                              |
| Joseph-von-Fraunhofer-Str. 20                               |
| 44227 Dortmund                                              |
+---------------------------------->>>>>>> to success! <<<<<<-+

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

View raw message