struts-user mailing list archives

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

I have spent about 3 hours trying to do Multiple Submit Buttons in same
form using Jquery/Ajax. I have tried
https://struts.apache.org/docs/multiple-submit-buttons.html without success.

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

because my Struts is: 2.3.28.1
and Json struts plugin: 2.3.28.1 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" />*


*</s:form>*

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

 https://struts.apache.org/docs/multiple-submit-buttons.html  mentioned.

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

Thanks in advance,

Bisconcini

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