• 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 ActionForm getting cleared after submission

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a web application with a page working on 2 action classes sharing 1 form.

In very rare cases, the form value gets cleared just before validation and user gets a blank page with error messages on.

I have checked my reset method and it's been implemented correctly. I read in one of the articles that this kind of thing could happen when we upload a file and the request size exceeds the max size and MultipartRequestHandler objects throws an exception. In my case there is no file upload involved but I am getting the exact same problem. Do you think my request object would have any restriction on size too or something?? I am badly stuck!

Please help!!

Many Thanks,
Mayank
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without any code or configuration (or even a Struts version) it is impossible to provide much useful information.

Some browsers impose a limit on GET request length. I'm sure there's a length limit for POST requests, but if your form submits *that* much information then your form is far, far, *far* too long.
 
Mayank Rana
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Struts version 1.3.8, Java version 1.5

My form has just got a 5 text boxes and there is no way the form data could exceed the POST limit.
Also, when I retry submitting the same data again, it goes through fine.

The form gets cleared out very rarely for some reason.

 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Again, without any code or configuration information, it's impossible to help.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic