on 05-22-2006 4:43 AM
Hi, everyone.
I want to assign my listBoxItem`s value dynamically.
So i try the codes is below:
String a = "Hellow"
<hbj:listBoxItem key="<%=a%>" value="<%=a%> " />
But the resulet will show "<%=a%>",not "Hellow".
How should i correct my codes?
HI,
TRY
<%@ taglib uri="tagLib" prefix="hbj" %>
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<% String a = "hello" ; %>
<hbj:dropdownListBox
id="Class1Select"
selection="<%=a%>"
onSelect="Class1_Selection"
>
<hbj:listBoxItem key="<%=a%>" value="<%=a%>" />
<hbj:listBoxItem key="NB" value="NB" />
<hbj:listBoxItem key="Mp3 "value="MP3" />
<hbj:listBoxItem key="LCD" value="LCD" />
</hbj:dropdownListBox>
</hbj:form>
</hbj:page>
</hbj:content>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.