Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:option

 
Santhosh Reddy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the value attribute of <html ption> the bean:write tag used is not executing,pls can anyone helpe me
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect this is happening because you're trying to write something like this:
This won't work because you can't embed one custom tag inside another. However, with almost all of the html:xx tags, if you provide a body for the tag, its value will be used for the value attruibute. So, the following will work:


Also, if you're iterating over a collection of JavaBeans to get the options, I'd suggest you look into using the <htmlptionsCollection /> tag instead.
[ August 13, 2007: Message edited by: Merrill Higginson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic