struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guilherme Bisconcini <>
Subject Multiple Submit Buttons in Same Form using Jquery/Ajax
Date Thu, 23 Jun 2016 20:11:45 GMT

I have spent about 3 hours trying to do Multiple Submit Buttons in same
form using Jquery/Ajax. I have tried without success.

I'm using Jquery with struts, so I think thats why it doens't work?

because my Struts is:
and Json struts plugin: also

I have also tried with the option:
(in struts.xml)

*<constant name="struts.mapper.action.prefix.enabled" value="true" />*

Here are my JSP file:

*<s:form id="leitura" action="leituraAction" theme="bootstrap"*

* cssClass="well form-horizontal">*

* <s:textfield name="tcpAddress" label="TCP/IP" tooltip="Coloque o endere├žo
IP do reader" placeholder="Endereco" />*

* <sj:submit type="submit"  value="Unico" name="unico" cssClass="btn
btn-primary" targets="funcional" />*

* <sj:submit type="submit"  value="Burst Start" name="burstStart"
cssClass="btn btn-success" targets="funcional" />*

* <sj:submit type="submit"  value="Burst Stop" name="burstStop"
cssClass="btn btn-danger" targets="funcional" />*


The action file is nothing special, I have tried my action file with all
types in the tutorial of:  mentioned.

*Theres any special thing to do Multiple Buttons in same Form using
Jquery/Json <sj:submit ? *

Thanks in advance,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message