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

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

 
Bernard Stansfield
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic