473,669 Members | 2,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

struts / html:select tag question



Hi. I have a newbie question about struts and the html:select tag. I
can successfully populate a bean with an array of things and have those
properly displayed in my html select box, but I can't seem to find an
example of how to pre-select a subset of those items when the page is
rendered. Can this be done with the html:select tag, or do I have to
use some other method? Could someone please point me to an example?
thanks,
Chris
Jul 17 '05 #1
0 4273

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7063
by: Steve Wright | last post by:
Hi all, I suspect that I will need Javascript to make this work which is why I am asking the question here! (and also crossposting) Can someone tell me if it is possible to have an HTML select statement that gets its options from a text file. <select name="contract"> <option value="">Select Contract</option> | <option value="RS-330">RS-330 Northern</option> | these
6
4123
by: bbcrock | last post by:
Unfortunately my users are demanding this functionality: They are on a form. Click on an "add" button. An html window pops up. They add a new item that is saved to the database. The window closes. The HTML select box REFRESHES itself with the new informaiton (Primary key and text field) WITHOUT submitting the form. I tried to get away with a text box on the form that would dynamically repopulate the select box, but no-go- they want to...
1
5361
by: Mohammed Shafiulla Khadri | last post by:
hi, I have the following piece of html code in a page <table width="90%" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="26%">&nbsp;&nbsp;&nbsp;day</td>
1
19320
by: ykong1214 | last post by:
In my project, there is a single select tag, <html:select property="userName" size="7"> <html:options collection="UserList" property="value" labelProperty="label" /> </html:select> <br><br> <input type="button" value="Select" onClick="go()">&nbsp;&nbsp;&nbsp; <input type="button" value="Cancel" onClick="cancel()"> when user choose any one and click "select" button, the value will be transfered to original window:
3
2599
by: allebhagya | last post by:
Hi, I can't understand the property attribute in html:select.Please tell the details of property attribute, why it is used and for what purpose it is used. Snd me reply as soon as possible. Thank u.
2
3615
by: BB | last post by:
Hello, I have a HTML form containing multidimensional selects listing equipments and their quantitites. This allow the users to select the kind of equipment and quantitites they would like to book. Upon onChange select event I would like to parse the data into a multidimensional Javascript array in order to check equipment availability for booking. But I can't figure out how to parse and upon JS HTML DOM reference I am not even sure...
2
4469
by: Problematic coder | last post by:
I have a need in an application to have the ability to select multiple values in some kind of drop down list or maybe even a html type select box. I have found there doesn't seem to be an option to do this with a standard asp.net DDL, however it is possible using a html select box, the problem then is getting the values selected on the code behind page. I think in classic asp it would have been something like this:
0
1517
by: cmrhema | last post by:
Hi, I have two controls one html select control and one asp.net dropdownlist control. In html select control i have three maps loaded. It is loaded in the following manner. <SELECT class="TextBoxLabel" id="ddlMap" style="WIDTH: 128px;" tabIndex="1" onchange="fnChangeMap();" name="ddlMap" runat="server">
2
1958
by: pedalpete | last post by:
Hi All, I find this incredibly strange, but ie7 my html select list is being blocked by the pop-up blocker. Not sure why this is, and so far doing a search hasn't pointed me to an answer. IE6 is fine. I know I could just change the security settings, but this is more for other users than for my own use. Here's the code I'm using, but I don't see any problems in it, and eclipse doesn't display any errors. Please don't tell me...
0
8896
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8810
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8590
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8659
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7410
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4387
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2798
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.