File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes html:options not populating html:select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "html:options not populating html:select" Watch "html:options not populating html:select" New topic
Author

html:options not populating html:select

Brian reckinger
Greenhorn

Joined: Feb 26, 2006
Posts: 3
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>html</shortname>

in WebSphere 5.1.1

I am very new to JSTL and the Struts Taglibs. I have an ArrayList contained inside of a value bean (VALUEBEAN) that I am putting into the HTTP session. I need to populate a drop-down box with the contents of the ArrayList (txnList). I am using the folling tags:

<bean efine id="vbean" name="VALUEBEAN" property="txnList" />

<html:select property="transactionNm" onchange="newTransaction()">
<html ptions collection="txnList" property="value" labelProperty="value" />
</html:select>

I've been reading Struts in Action and the Apache doc, but It's just not sinking in and I've got to understand where I'm going wrong.

Please, "help a brother out."
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

"Richy Cunningham",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
[ February 26, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Brian reckinger
Greenhorn

Joined: Feb 26, 2006
Posts: 3
From a guy named "Bear", OK.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

If you have a complaint about the naming policy, please feel free to bring it up in the JavaRanch forum in this topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:options not populating html:select