Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Select Tag

 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a Bean which has LabelValueBean[] in its constructor...I need to display the values in a Select box using struts....Sample code is






I need to disply this list in select box ...how do i go abt it....pls gimme the <html:select syntax for this

Pls help...its urgent
[ May 24, 2005: Message edited by: Mary Cole ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are links explaining how to use these tags:

http://struts.apache.org/userGuide/struts-html.html#select
http://struts.apache.org/userGuide/struts-html.html#options

If you look at the example application that comes with the struts download, you can see an example of using the html:select and html ptions tags in the subscription.jsp file.

This link gives a detailed explanation of the examples:
http://struts.application-servers.com/struts-layout/tour.htm

Good luck!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic