Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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
 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!