Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submitting the values of bean:write tag

 
Jaya Swaminathan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

when i submit the form i want to submit the values of the properties rendered using bean:write also to be submitted. But these values are set to Null. Is there any way to get around this (other than making those fields also as text fields).

Thank you in advance
 
Ben Rainville
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I always just use an html:hidden tag in tandem with the bean:write tag. But if there's a better way to do it I'd like to know.
 
Jaya Swaminathan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for ur idea. It helped to acheive my purpose whether its the best way or not.
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your formBean in scope is in session, then you don't need Hidden fileds. Just a small idea. That depends how big the object is...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic