• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts2Jquery form submitting twice.

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am using struts2jquery version struts2-jquery-plugin-2.5.3.jar.

When i click submit button form is getting submitted twice. I have checked This site.

* Solve Issue 414: Forms submitted twice

In my case problem is still there. This site also mentioned to * Upgrade to jQuery UI 1.8.9
how can i do this? Please let me know.

Thanks
Peter
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This means the plugin is now using jQuery UI 1.8.9.

Are all form submitted twice? Is it reproduce able in the showcase?

Johannes
 
James Peter
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have not tried showcase application. But I will try. Below are further details. I tested with Live http headers plugin

http://localhost:8080/TestApplication/cm-company-modify-options.action

POST /TestApplication/cm-company-modify-options.action HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14 (.NET CLR 3.5.30729)
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://localhost:8080/TestApplication/index.action
Content-Length: 84
Cookie: JSESSIONID=4FA16E52CAA9C4CC638AB47171F731D7
Pragma: no-cache
Cache-Control: no-cache
selectedCompanyToModify=-1&struts.enableJSONValidation=true&struts.validateOnly=true
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html
Content-Length: 4
Date: Thu, 03 Mar 2011 14:19:42 GMT
----------------------------------------------------------
http://localhost:8080/TestApplication/cm-company-modify-options.action

POST /TestApplication/cm-company-modify-options.action HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14 (.NET CLR 3.5.30729)
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://localhost:8080/TestApplication/index.action
Content-Length: 26
Cookie: JSESSIONID=4FA16E52CAA9C4CC638AB47171F731D7
Pragma: no-cache
Cache-Control: no-cache
selectedCompanyToModify=-1
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html
Content-Length: 4
Date: Thu, 03 Mar 2011 14:19:42 GMT
----------------------------------------------------------

Below are jar files

struts2-convention-plugin-2.2.1.jar
struts2-core-2.2.1.jar
struts2-jquery-chart-plugin-2.5.0.jar
struts2-jquery-grid-plugin-2.5.0.jar
struts2-jquery-plugin-2.5.3.jar
struts2-jquery-richtext-plugin-2.5.0.jar
struts2-json-plugin-2.2.1.jar

Even select control also calling action twice.



I created a simple page with form and one submit button. It is also submitting twice.

Thanks
Peter
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic