• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with html:optionsCollection  RSS feed

 
Swerrgy Smith
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

If I use something like that, it doesn't work (the selectedStore variable will not receive the value when I click Submit):



I must insert a value before the collection so that the application works properly:




Can anyone tell me why?

 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts 1.x tag lib docs says about optionsCollection
http://struts.apache.org/1.x/struts-taglib/tlddoc/html/optionsCollection.html wrote:This tag can be used multiple times within a single <html:select> element, either in conjunction with or instead of one or more <html:option> or <html:options> elements.

I would rather check with the generated HTML for both the code snippets and find out any discrepancies there.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!