• 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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!