• 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

Action form: data getting lost between form submit and setters on ActionForm

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

I'm out of options on this. Looking for a flash of inspiration from someone. Got an xsl page data posts from the page on submit (I have verified this by changing the form method="get") but a debug in the ActionForm setter methods, shows the setters are getting fired, but nulls are being passed in ...

Any ideas please?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would double-check that.
If anything, it should set with "" empty String, not null.
 
Bernard Stansfield
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
D'oh!

How many hours had I been staring at this and pullig my hair out

Closed checking revealed some fields (that I'm not yet bothered about and so hadn't entered any data into) coming through as ""!

Put data into the page and resubmitted - bingo, data! Then I carefully cross-checked my name= and value= attributes on the other inputs and realised they were subtely misspelt! Aaaagh! :roll:

Thanks Marc
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic