struts-user mailing list archives

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

I've tried following this, 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?


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

View raw message