Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Struts2 Action not reading request parameters while POST.  RSS feed

 
Ranch Hand
Posts: 125
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 ??
 
Greenhorn
Posts: 20
Fedora IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?
Lukas
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!