<html:select> problem!

Joined
Apr 3, 2007
Messages
1
Reaction score
0
Hi

I have a jsp with a form and 1text fields and a drop down in it. When the page loads, I populate the drop down using <html:select> of struts.

Usage:
<html:select name="guiSecurityBranchListForm" property="branchId" style='WIDTH:250PX' >
<html:eek:ption value="" ></html:eek:ption>
<html:eek:ptionsCollection name="guiSecurityBranchListForm"
property="branchList" label="branchCode" value="branchId"/>
</html:select>

Now, when the user selects an item from the drop down, I need the the text field to be filled in based on the selection he/she makes. How do I do this?

Note:
"branchList" is an ArrayList containing "Branch" beans. The attributes in the Branch bean are 1) branchId 2) branchCode, 3) branchName. When the user selects a branchId from the drop down, I should be able to get the branchName from the Branch bean? I know I can do it by using pure Java code in my JSP, but is there a Struts taglib to help me out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top