• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts form values getting blanked out on submit

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic