struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcos Mendonça" <marc...@gmail.com>
Subject [struts2] Button pressed
Date Wed, 19 Sep 2007 20:33:30 GMT
Hello

I've tried following this
http://struts.apache.org/2.x/docs/html-form-buttons-howto.html, to
determine in my validate() method of my action to check wich button
was pressed, It doesn't seem to work though.

    private boolean selecaoOk = false;

    public void setSelecaoOk(boolean selecaoOk) {
	this.selecaoOk = selecaoOk;
    }

And in my jsp:

    <s:submit value="Próximo" name="selecaoOk"/>

But when the form is submitted the selecaoOk variable is false.

Has anyone succeed in determing wich button was pressed with Struts2.0.9?

Any tips?

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message