If you are trying to do different processing in your action based on
different buttons clicked in the form, you can use 
the Struts LookupDispatchAction instead of the normal Action class.

It lets you map the buttons on your page to separate methods in your action.

Please refer the struts API documentation on LookupDispatchAction for more
information.

Hope this helps,
Dhanashree. 

-----Original Message-----
From: Mauro Morales M. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 16, 2004 9:14 AM
To: [EMAIL PROTECTED]
Subject: Problem with null value

Hi,

In  my .jsp have follow html code

<html:submit property="resActualizar" value="Actualizar"/> <html:submit
property="resEliminar" value="Eliminar" />

First is my update button, second delete button, both in same form.

This is my form code

    public String getResActualizar () {
        return this.resActualizar;
    }
    public void setResActualizar (String resActualizar) {
        this.resActualizar = resActualizar;
    }
    public String getResEliminar () {
        return this.resEliminar;
    }
    public void setResEliminar (String resEliminar) {
        this.resEliminar = resEliminar;

In my action have follow code

System.out.println(subform.getResActualizar());

then print in STDOUT "Actualizar"

In case of

System.out.println(subform.getResEliminar());

print in STDOUT null

then in action code when i do

if (subform.getResEliminar().equals("Eliminar"))

do it nothing ...

Help me please ...

Thanks,

-- Mauro


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to