Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Struts2 Action not reading request parameters while POST.

Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a contact us form on the application and is mapped to a Struts2 Action. It was working fine until, I changed the server and deployed the Tomcat behind Apache2. The action class not setting the request parameters and empty strings are being stored in DB. Its working fine if user the GET on the form .. and in local machine where I run the code in eclipse and tomcat plug in.. both GET and POST are working fine.. where as in Production only GET are setting the request parameter values to Action class attribute but POST setting the emtpy/null values. Is it due to introducing the apache server ?? Or Did I change something accidentally ??
Posts: 20
IntelliJ IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using mod_jk or mod_proxy?
I have also some older Struts 2 application behind Apache httpd and POST requests work correctly.
Can you show us httpd configuration for the virtual host?
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!