Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 20th, 2006, 03:34 AM
Registered User
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Populate the drop down

i want to populate drop-down from formbean or action classes
how to do it , Please help me

Old July 12th, 2006, 03:09 AM
Registered User
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

for the above question first u have to store all the elements of drop-down box into any scopeble object ( request or session or application) in an action class. then in jsp use <html:options ../> to populate the values into drop-down box.

Old August 2nd, 2006, 03:06 AM
Authorized User
Join Date: Aug 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sachin.tathod

U can use this option

<html:option value="planID">name</html:option>

Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate the 2nd drop down based on value of 1st pendemv Classic ASP Databases 3 August 26th, 2008 12:42 PM
Populate fields from drop-down selection SimonL Infopath 0 April 12th, 2007 07:30 AM
How to populate drop down box with registery value method Beginning VB 6 2 April 20th, 2006 03:00 AM
populate drop down list with a function code3hree Javascript 1 May 28th, 2005 11:44 AM
Populate a drop down from database topshed Access 5 November 29th, 2004 09:38 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.