File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts form values getting blanked out on submit

 
Jason Stull
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
We are scratching our heads over a strange problem that has arisen since our last deployment to Struts running in JBoss 3.08 w/ Jetty over HTTPS. Some of the forms submitted by our clients are getting wiped out after getting to the server. Meaning someone types in their name hits the submit button, then Struts looks up the form in the session, then calls the validate method. At this point all the name fields in the form bean are blank! This is especially frustrating because it only happens with certain web browsers and for those web browsers it happens every time. And of course these folks had no trouble at all before the deployment. We've been around and around and can't figure out if the problem is on the server or client side. Things changed at our last deployment include:
1. Upgrading VM to j2sdk1.4.2_03 from j2sdk1.4.2
2. Using one course grained form bean as opposed to several fine grained ones.
*all these changes went without a hitch in testing
That's pretty much it. I'd love to take the blame and say it's a bug in our business logic, but things seem to be getting mucked up in the Struts framework before it gets to our business code.
Any ideas or comments would be much appreciated. I'm running out of hair :-)
-j
 
Emilio Butrage´┐Żo
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check for the presence of any filters that intercept the request before they reach Struts. Examine your web.xml closely. Good luck
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Certain browsers submit duplicate requests especially you are basing your form submission on a <a href.... > and JavaScript
Srikanth Shenoy
Author: Struts Survival Guide - Basics to Best Practices
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic