• 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

I need a simple drop down list of numbers

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe I'm brain farting, but I can't seem to find a simple way to create a dropdown (select) list of just numbers. I know I can do this



But I want to do something like this:



Anyone have any ideas? I didn't want to have to create a special Bean (which is what the second code block uses). I just wanted to use Integer or something.

Thanks in advance,
Fletch
[ May 30, 2008: Message edited by: Fletcher Munson ]
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts 2 provides a slick way to do such a thing via OGNL:


I don't know of a Struts 1 equivalent, but that's not to say it can't be done. I'd probably just use a scriptlet or utility bean and move on to more important problems
[ May 30, 2008: Message edited by: Joe Ess ]
 
Fletcher Munson
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the answer. I actually am using Struts 1.3.8 (though we are "eventually" moving to 2). Maybe I'll have to try using logic:iterate
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this:

[ May 30, 2008: Message edited by: Merrill Higginson ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic