File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes what struts tld syntax is for HTML OPTION ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "what struts tld syntax is for HTML OPTION ?" Watch "what struts tld syntax is for HTML OPTION ?" New topic
Author

what struts tld syntax is for HTML OPTION ?

steve francisco
Ranch Hand

Joined: Jan 26, 2005
Posts: 46
I have a java bean containing a Colletion of names, and I need this collection of String names to be shown in the html <OPTION> list. If I use normal JSP to write it, I need to loop through the collection and append it to syntax <OPTION>...

Is there a simple struts tld syntax that I can simply grab the collection and "feed" into the "OPTION" ?
sanat
Ranch Hand

Joined: Dec 08, 2004
Posts: 111

See this article

http://struts.apache.org/userGuide/struts-html.html#optionsCollection

hope this helps.
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
look at the <html ptions> tag, note the 's', not the <html ption> tag. this tags takes a collection to generate dropdown items.


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what struts tld syntax is for HTML OPTION ?