Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP 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 May 26th, 2007, 08:41 AM
Registered User
 
Join Date: May 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic values stored in a select button using JSP

Hi Iam new to this site.
I need an help while coding in JSP.
I have inserted a select button(combo).and i stored some values for the select button using the option value tag.
if any changes in the values i have to go again to the code and change. Is there any way to change the values in dynamic.
(ie i should not alter the jsp code).
whether we can do this using the collection concept.
(ie using the .properties file we store the values and if any changes only changes made in the .properties file.)
can any one help in codeing for this.

Regards:
Dhruthi


 
Old May 28th, 2007, 07:33 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
you can also use a table to have the list of values and load them to a bean class and use the bean in the jsp page to generate the combo, you can use the properties file as you've mentioned to store the list of options.
Are you using any framework or plain JSP/Servlets?

Regards,
Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Select row in GridView WITHOUT using Select button rao965 ASP.NET 2.0 Professional 1 February 15th, 2008 10:44 AM
Calling an insert stored proc from a select stored dzitam SQL Language 10 April 2nd, 2007 12:39 PM
Dynamic Checkboxes using dynamic Select Values bsheridan Classic ASP Databases 0 March 12th, 2006 10:17 AM
Dynamic select box from database values pk_jsp Javascript 1 May 4th, 2005 01:45 AM
Button acts depending on radio button values janise Access 4 March 10th, 2004 12:53 AM





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