ibute("mylist") then assign it to some
collection.then
use that collection for populating the select
lokee
-Original Message-
From: Christian Schlaefcke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 2:45 AM
To: Struts Users Mailing List
Subject: html:select
Hi,
I believe you need to read the following link
http://www.jajakarta.org/struts/struts1.1/documentation/ja/target/userGuide/
printer/struts-html.html#options
This should give you an idea of what the attributes of html:options are.
Collection should be a set of java beans. Rules are clearly
PROTECTED]
Sent: Tuesday, March 23, 2004 2:45 AM
To: Struts Users Mailing List
Subject: html:select / html:options
Hi Folks!
for several days I mess around with html:select and html:options.
I want to access a collection with names or numbers (just
java.lang.String). This collection is availa
Hi Folks!
for several days I mess around with html:select and html:options.
I want to access a collection with names or numbers (just
java.lang.String). This collection is available in the session. For
testing I generated my own collection in the jsp
<%
java.util.Collection list =
I use the which is the same as but
uses a more struts "standard" attribute names and you would do it like this:
Niall
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 17, 2004 11:57 AM
Subject: Repost : Usage of<
Hi,
I am a newbie in struts,
I have to populate a dropdown using html:options. I have to use a collection of beans.
This collection should be stored in my Action Form.
I have a collection of CountryBeans named as collectionCountry. In my action class I
am writing
request.setAttribute
hi ,
i have an ActionForm with countries in html:options , there are some
other fields, that i have to validate. So, when i submit and errors
occur, the field selected in countries is set to default. Is there a way
to mark the selected field?
The other fields (text fields) are not cleared.
In
Hi,
I am a newbie in struts,
I have to populate a dropdown using html:options. I have to use a collection of beans.
This collection should be stored in my Action Form.
I have a collection of CountryBeans named as collectionCountry.
In my action class I am writing
request.setAttribute
Sent: Monday, February 02, 2004 5:41 PM
To: Struts-User (E-Mail)
Subject: html:options and html:select
hello,
I have following bean:
public class CProduct {
private Integer id;
private String name
public Integer getId() {return id;}
puclic void setId(Integer id)
: Lunes, 02 de Febrero de 2004 09:28 a.m.
To: 'Struts Users Mailing List'
Subject: AW: html:options and html:select
Thanks for your answer, but
I have found out, that I can use html:optionsCollection.
Regards,
Frank
-Ursprüngliche Nachricht-
Von: Claire Wall [mai
Aha!
i use the bean:write's but then i like doing things the complicated way.
Never used the html:options in this situation before so thanks for the tip -
will make things much easier!
cw :)
- Original Message -
From: "Mark Lowe" <[EMAIL PROTECTED]>
To: "
[mailto:[EMAIL PROTECTED]
Gesendet: Montag, 2. Februar 2004 13:22
An: Struts Users Mailing List
Betreff: Re: html:options and html:select
you can do the following:
">
'property' of the select box should be the name of the property in your
FormBean that you
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 5:41 PM
To: Struts-User (E-Mail)
Subject: html:options and html:select
hello,
I have following bean:
public class CProduct {
private Integer id;
private String name
public Integer getId() {return id;}
Thanks for your answer, but
I have found out, that I can use html:optionsCollection.
Regards,
Frank
-Ursprüngliche Nachricht-
Von: Claire Wall [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 2. Februar 2004 13:22
An: Struts Users Mailing List
Betreff: Re: html:options and
ArrayList productList = new ArrayList();
CProduct product = new CProduct();
product.setId(new Integer(1));
product.setName("My Product");
productList.add(product);
request.setAttribute("products",productList.toArray());
...
--
If you dont want to have a refering action then you can have an
an Integer object. You'd have to try it and
see, and perhaps somebody can clarify this further, but I've never tried
this myself.
HTH
claire :)
- Original Message -
From: "Otto, Frank" <[EMAIL PROTECTED]>
To: "Struts-User (E-Mail)" <[EMAIL PROTEC
hello,
I have following bean:
public class CProduct {
private Integer id;
private String name
public Integer getId() {return id;}
puclic void setId(Integer id){
...
}
My form class contains a java.util.List of CProduct bean.
How can I display the List as select box? I
Hi
I am using nested beans. What is the equivalent using nested beans
for the following ?
"OBJECTIVE" is in the session scope.
I tried several options but none worked.
Mohan
-
To unsubscribe,
I have a collection of LabelValueBeans as a property of another bean (an Action), and
I store this bean in session scope with "preparedData" as the key. But when I try and
access it using html:option, I get the following error:
"Cannot find bean preparedData in any scope"
Here's html:op
I think you should re-think your UI design. Besides being very slow, the
select box will be very annoying and difficult for the end user to use. You
should try and narrow down the users choices before they get to the select
box page so that you only need to show a few dozen options at most.
Reg
I have a an Array with a large list of names in it (up to about 1000+ or
more).
I need to display these names in a drop down list, but when The page loads
it
simply stops loading after about 837 lines.
The code I am using is:
Any ideas why it only displays a part of the Array and not the f
questions contain html:text, html:radio and html:select/html:options
elements.
I did this by defining a DIV element inside a table-td, with a certain id.
The onclick functions of the radio buttons either call a change-layercontent
or a change-layervoid javascript function. These javascript
ething like this, assuming populateAgencyIds(List) adds items to an
existing List :
<% MyUtils.populateAgencyIds(agencyIds); %>
Nico.
- Original Message -
From: "ajay brar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 3:18 PM
Subject: R
e key you used.
thanks
cheers
ajay
From: "Nicolas De Loof" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: URGENT: html:options
Date: Tue, 14 Oct 2003 15:11:5
- Original Message -
From: "ajay brar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 2:53 PM
Subject: RE: URGENT: html:options
> hi!
>
> >I think your collection needs to implement the List interface (use an
> >ArrayList
PROTECTED]
Subject: URGENT: html:options
hi!
i'm getting a problem with my html:options
what i have is a MyUtils class with a method to retrieve a list of agency
id's from the database
class MyUtils
{
//gets agencyIds creates LabelValueBeans and chucks them into a Vector
public sta
I think your collection needs to implement the List interface (use an
ArrayList instead of a vector)
-Original Message-
From: ajay brar [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 12:45
To: [EMAIL PROTECTED]
Subject: URGENT: html:options
hi!
i'm getting a problem with my html:op
hi!
i'm getting a problem with my html:options
what i have is a MyUtils class with a method to retrieve a list of agency
id's from the database
class MyUtils
{
//gets agencyIds creates LabelValueBeans and chucks them into a Vector
public static Vector getAgencyIds()
}
in my jsp
ECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: html:options
Date: Sun, 12 Oct 2003 09:51:17 -0500
name/value pairs from a database are handled nicely
in a list of LabelValueBeans.
I'd pull the code to load that list from the database out
into a model clas
want this
populated on the basis of the selection made form the drop down list.
how do i do this? any suggestions?
i'm thinking of reading all agencies, chucking them into a
collection, placing the collection in the session context and then
reading off it in the jsp page using html:options
The d
this populated on
the basis of the selection made form the drop down list.
how do i do this? any suggestions?
i'm thinking of reading all agencies, chucking them into a collection,
placing the collection in the session context and then reading off it in the
jsp page using html:options
to show in a drop-down box. The
> same thing is both the label as well as the value. Can anybody tell me how I
>
> can do this using html:options? The collection in html:options is expected
> to hold JSP beans, which is not the case in my situation.
>
> Thanks in advance
Hi all,
I have an ArraList of strings that I want to show in a drop-down box. The
same thing is both the label as well as the value. Can anybody tell me how I
can do this using html:options? The collection in html:options is expected
to hold JSP beans, which is not the case in my situation
, html:options & i182
Part 1
On a jsp page I want to have a html:select of the type that has a
predefined
number of options, e.g. different sports. Now, I want to make use of
Struts
internalization where the differents locales text strings are retrieved
from
its locale properties file.
If I read
Part 1
On a jsp page I want to have a html:select of the type that has a
predefined
number of options, e.g. different sports. Now, I want to make use of
Struts
internalization where the differents locales text strings are retrieved
from
its locale properties file.
If I read the text strings from
-mail)
Subject: blank screen when validation fails. appears to be related to
html:options
I am having a problem with validating a html:select drop down. I think.
The problem: after validation fails the JSP is blank (the browser is blank)
not just an empty drop down. To be more specific...I load
n
not repopulating because when I comment out the lines with the bean:define
and html:options that it then comes back from the validation failure with
the correct view (instead of blank as mentioned above). But of course the
drop down is empty because I commented out the lines to populate it. I
tried a f
Thank you very much! I really appreciate your help!
Cheers, Bård A.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: How can I get a value and a name that is different on a
html:options collection?
I have a Form class:
public Collection getMyMonthList() {
myMonthList = new Vector();
Calendar cal = Calendar.getInstance();
cal.setTime(new Date(01012003));
for (int i = 1; i
2003 8:49 AM
> To: [EMAIL PROTECTED]
> Subject: How can I get a value and a name that is different on a
> html:options collection?
>
>
> I have a Form class:
>
> public Collection getMyMonthList() {
> myMonthList = new Vector();
> Calendar cal = Calendar.getInstance();
>
I have a Form class:
public Collection getMyMonthList() {
myMonthList = new Vector();
Calendar cal = Calendar.getInstance();
cal.setTime(new Date(01012003));
for (int i = 1; i < 13; i++) {
String label = monthListFormat.format(zeroTime(cal.getTime(),
Calendar.MONTH, i));
LabelValueBean
Thanks for the very useful information. Everything you said worked with
a single exception; to get the correct interpretation of the property
value pointing to a collection of LabelValueBeans, I needed to use
html:optionsCollection rather than html:options .
-Original Message-
From
Craig Berry wrote:
> The jsp page contains an html:form section linked via action mapping to
the EditDeForm type.
> In it, there is a select/options section that looks like this:
>
>
> property="value"
> labelProperty="label"/>
>
> I had thought that this would be enough to make it wor
After much googling and head-scratching, I finally have an html:options tag working on
a jsp. The problem is that I don't know why one component of the solution is needed,
and I was hoping someone can explain it to me.
My ActionForm subclass, EditDeForm, has a pair of methods to provid
Try this.
In your Action:
ArrayList months = new ArrayList();
months.add(new LabelValueBean("January", 1);
months.add(new LabelValueBean("Februrary", 2);
request.setAttribute("months", months);
In your JSP:
HTH,
-= J
> "sjones" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTEC
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page language="java"
import=" com.ubs.directory.common.DirectoryEqualityOperator, java.util.*"
contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"
%>
-Original Message-
From: sjones [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 10:43 AM
To: [EMAIL PROTECTED]
Subject: html:options
Good Morning
Good Morning Everyone.
I have a List object and i need my JSP page
to build a drop down list box using the List as the source
for the options.
I can do it with a scriplet but i need to one of the struts tags
can anyone help me with use one of these tags.
I am looking at the java.docs but it d
Hello!
I'm using html:select and html:options to display a vector:
Now I would like to show the selected option when the options-field is
rendered (the size of the vector is larger than 6), or in other words I
would like to have the scroll bar at the right position to sho
U can use tag instead of .
This will retain the selected value .
From: "lcl" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: html:options can not automatically match value
Date: Thu, 5 Jun 2003 10:57
Hello,
who can give me an example, how to use the html:select in conjunction with
html:options? I had already defined an ActionForm and JSP like follows. The
listing of the option-Elements works fine but not the "reshowing" of the
selected elements of the list, because after I have c
, June 06, 2003 4:08 AM
To: Struts Users Mailing List
Subject: Excluding values inside a logic:iterate tag or an html:options
tag
Hi,
Is it possible to tell these tags that when they hit some values, they
shouldn't display them ?
Thanks,
Hi,
Is it possible to tell these tags that when they hit some values, they
shouldn't display them ?
Thanks,
ionel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
The question's in the subject.
Can the labelProperty of an html:options tag be composed of a
concatenation of two or more fields ? (like having labelProperty="name +
surname")
thanks,
ionel
-
To unsubscribe,
ames is an attribute set in the request from the action
class
The apartmentForm is the form bean and the apartmentOffice is a property of
the bean
Hope this helps
- Original Message -
From: "lcl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 200
gt; - Original Message -
> From: "lcl" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 04, 2003 12:33 PM
> Subject: html:options can not automatically match value
>
>
> > Hi all ,
> >
> > I have using the following
Hi all ,
I have using the following code to express a select control in html using
strtus tag:
When this jsp page is running, all is ok, but the options will not match
what the "projclieid" is. in the dropdown list, there is one item match the
value,but it is not mark as "selected", what's
hey thanksmaybe I'll try to minimize my code.
-Original Message-
From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 12:15 PM
To: Struts Users Mailing List
Subject: RE: html:options
I was able to do it like
PROTECTED]
Sent: Tuesday, May 27, 2003 11:49 AM
To: Struts Users Mailing List
Subject: RE: html:select / html:options
That means we are keeping unsafeValues and unsafeLabels separately in our form-bean.
(Though they are related -- i think so)
What if these two are kept encapsulated in an object.
I was able to do it like that.
Thanks a lot all you ppl.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 9:39 PM
To: [EMAIL PROTECTED]
Subject: RE: html:options
There are other optiosn to use
There are other optiosn to use it...
I ahve never used it with Arays but i have used it with Collections...
First i use jsp:useBean tag to get the collection from the form and make it available
in the page scope and then use html:options with collection="beanName"
where beanName i
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 9:06 PM
To: Struts Users Mailing List
Subject: RE: html:select / html:options
I used the following with vectors of unsafeValues and unsafeLabels in my incidentForm bean.
-Original Message-
From: Abhinav (Cognizant) [mailto
: Struts Users Mailing List
Subject: RE: html:select / html:options
I used the following with vectors of unsafeValues and unsafeLabels in my incidentForm
bean.
-Original Message-
From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 11:20 AM
To
="filter" label="label" value="value"/>
-Original Message-
From: e gg [mailto:[EMAIL PROTECTED]
Sent: 17 March, 2003 15:16
To: [EMAIL PROTECTED]
Subject: Html:Options usage
Hi, I have a bean class that returns an ArrayList of ArrayLists for my
dropdowns. I am
-Original Message-
From: e gg [mailto:[EMAIL PROTECTED]
Sent: 17 March, 2003 15:16
To: [EMAIL PROTECTED]
Subject: Html:Options usage
Hi, I have a bean class that returns an ArrayList of ArrayLists for my
dropdowns. I am really confused on how to show this dropdowns. Here
Hi, I have a bean class that returns an ArrayList of ArrayLists for my dropdowns. I am
really confused on how to show this dropdowns. Here's my bean class:
public class UserAccessBean implements java.io.Serializable {
List deptList = new ArrayList();
List brokerList = new ArrayList();
List f
if you use with or , the
option that equals the formbean property value will be automaticaly
selected.
(formbean initialized with name="foo")
foo
bar
nop
will render
Nico.
> Is there a way of obtaining a element where one of the
> sub-elements has the SELECTED attribute ?
>
Is there a way of obtaining a element where one of the
sub-elements has the SELECTED attribute ?
Thanks
Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA
e-mail: [EMAIL PROTECTED]
Tel.: 010 2712603
Hello,
I have an existing application which i converted into struts,
however i'm having some problem with regards to option with javascript.
The picture of the user should be reflected whenever his/her user id is
selected from the drop down box.
Below is the working application:
function sh
ist <[EMAIL PROTECTED]>
Subject: RE: html:options selected attribute
>
> Take your pick of
http://marc.theaimsgroup.com/?l=struts-user&m=103416927522003&w=2
http://marc.theaimsgroup.com/?l=struts-user&m=103313043614360&w=2
http://marc.theaimsgroup.com/?l
bodan Kasterovic
--> -Ursprungliche Nachricht-
--> Von: Jason Vinson [mailto:[EMAIL PROTECTED]]
--> Gesendet: Mittwoch, 12. Februar 2003 15:25
--> An: Struts Users Mailing List
--> Betreff: Re: AW: html:options selected attribute
-->
-->
--> I am not exactly following the lo
truts Users Mailing List
Subject: Re: html:options selected attribute
I am not exactly following the logic here. Could you elaborate a little more?
Thanks,
Jason
---Original Message---
From: Slobodan Kasterovic <[EMAIL PROTECTED]>
Sent: 02/12/03 08:24 AM
To: 'Struts Users Ma
I am not exactly following the logic here. Could you elaborate a little more?
Thanks,
Jason
---Original Message---
From: Slobodan Kasterovic <[EMAIL PROTECTED]>
Sent: 02/12/03 08:24 AM
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: AW: html:opti
:[EMAIL PROTECTED]]
--> Gesendet: Mittwoch, 12. Februar 2003 13:51
--> An: Struts Users Mailing List
--> Betreff: html:options selected attribute
-->
-->
--> Hi folks,
-->
-->There my be a simple answer to this that I am
--> overlooking, but I am populating a pull down se
Hi folks,
There my be a simple answer to this that I am overlooking, but I am populating a
pull down select, and I can't figure out a good way to set the selected attribute to
the first element. I am using a collection (string array) and my jsp has this code:
Hi,
I have an ActionForm for my JSP with contains one String for the
"html:select", one String-Array for the options property and one
String-Array for the optionslabel.
There are getter and setter - Methods for all of these variables.
...
private String pwGruppe_ausgewaehlt = null;
private Strin
uary 24, 2003 12:03 AM
Subject: RE: Need help with html:select and html:options
> Check if you have month & day properties defined in your form bean.
>
> Suresh
>
> >-Original Message-
> >From: Scott Seong [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, Janua
Check if you have month & day properties defined in your form bean.
Suresh
>-Original Message-
>From: Scott Seong [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 24, 2003 11:32 AM
>To: Struts Users Mailing List
>Subject: Need help with html:select and html:options
Hello,
I'm having trouble with html:select and html:options. Basically, I have
three select/options pairs in a JSP page, and the result is complaining
about "No getter method available for Property month for bean name under
org.apache...". Here is the code sample:
<%
Vector s
Thanks it work!.
-Gus D.
Rick Reumann wrote:
On Monday, January 6, 2003, 2:14:38 PM, Gus wrote:
GD>
GD> labelProperty="label"/>
GD>
GD> Example. the options are "Read-only", "Admin", and "Analyst" that's the
GD> order of the collection, when I edit a user that is Admin, I want the
On Monday, January 6, 2003, 2:14:38 PM, Gus wrote:
GD>
GD> labelProperty="label"/>
GD>
GD> Example. the options are "Read-only", "Admin", and "Analyst" that's the
GD> order of the collection, when I edit a user that is Admin, I want the
GD> drop-down to show with the "Admin" being s
I did something similar, with optionsCollection (which I like).
Here is my code:
for optionsCollection, my "property" is the name of my bean, and I think
you have to pluralize it (example availablecourselabel -->
availablecourselabels) to indicate that it's a collection. The "label"
and "
I populate an html:option tag with a collection. I use the html:option
to create a new user in my system and to edit a user in my system.
When doing an edit I want the html:option to be shown with the current
accessType of the user I'm editing.
Example. the options are "Read-only", "A
anuary 03, 2003 7:08 PM
Subject: RE: html:select and html:options
You can use the LabelValueBean class for that, see www.husted.com for examples.
Ilya
-Original Message-
From: Jose Luis
To: Struts Users Mailing List
Sent: 1/3/03 11:04 AM
Subject: html:select and
You can use the LabelValueBean class for that, see www.husted.com for
examples.
Ilya
-Original Message-
From: Jose Luis
To: Struts Users Mailing List
Sent: 1/3/03 11:04 AM
Subject: html:select and html:options
hi everyone, i have a page whit the following code:
where
hi everyone, i have a page whit the following code:
where sectorCompany is an ArrayList that i built prior to view the jsp. My problem is:
what i really need is to pass to the result action the value which represents the
labels that contains the SectorCompany ArrayList, so, How i can build
To: [EMAIL PROTECTED]
Subject: Ye olde html:options tag?
I apologize for this basic question, but I'm new to struts and Java web
programming in general, and I really can't get the tag to
work...
The error I'm getting, specifically, is:
javax.servlet.jsp.JspException: No getter method a
I apologize for this basic question, but I'm new to struts and Java web
programming in general, and I really can't get the tag to
work...
The error I'm getting, specifically, is:
javax.servlet.jsp.JspException: No getter method available for property
email for bean under name users
My
Correct me if I'm wrong, but aren't the "e; entries unnecessary?
Couldn't you just remove them?
-Original Message-
From: Nathalie Foures [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 9:52 AM
To: [EMAIL PROTECTED]
Subject: html:options encoded property
myhome/hello&action="doSomething"";>something
...
The " character is translated. As a result the option value becomes
"http://hello&action="; : it stops at the first ":" character and doesn't
take the whole url! doSomething is forgotten...
I lo
Subject: displaying an aggregated label for html:options
Hello
I want to display an aggregated label in a combo box but don't know if it's
possible in struts. Here's the example:
Hello
I want to display an aggregated label in a combo box but don't know if it's
possible in struts. Here's the example:
Currently I have -
which works fine. But I want to display "lastName, firstName". Does anyone
know how to do this?
Thanks in advance,
Allison
--
To unsubscr
Dennis Muhlestein wrote:
I have a hashtable with key/value that get displayed by an html:options
tag.
Works ok, but they are ordered in reverse order of the id. That isn't
any performance problem, but it looks a little strange to the user.
For instance, what if you wanted the optio
Thanks for the comments. Seems to make more sense not to have
any ordering functionality in the html:options tag anyway.
On Wed, 2002-10-30 at 10:40, Dennis Muhlestein wrote:
> I have a hashtable with key/value that get displayed by an html:options
> tag.
>
> Works ok, but they
> -Original Message-
> From: Dennis Muhlestein [mailto:dennis@;zserve.com]
> Sent: Wednesday, October 30, 2002 9:41 AM
>
> I have a hashtable with key/value that get displayed by an
> html:options
> tag.
>
> Works ok, but they are ordered in reverse order o
Hash Tables don't guarantee order when you pull them out enmasse.
probably best bet is to store it in a list and sort accordingly
(Collections.sort).
Dennis Muhlestein wrote:
I have a hashtable with key/value that get displayed by an html:options
tag.
Works ok, but they are order
I have a hashtable with key/value that get displayed by an html:options
tag.
Works ok, but they are ordered in reverse order of the id. That isn't
any performance problem, but it looks a little strange to the user.
For instance, what if you wanted the options in alphabetical order?
class.
Sri
-Original Message-
From: Doug Dates [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 29, 2002 8:35 PM
To: Struts Users Mailing List
Subject: html:options
I want to display a dropdown list. The list items are "By First Name", "By Last Name",
"By Date
I want to display a dropdown list. The list items are "By First Name", "By
Last Name", "By Date". I think I can do it by the following way:
By First Name
By Last Name
By Date
Is there any disadvantages to use above approach compared with using
? If I use instead of using abo
;Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 9:43 AM
Subject: Re: RGH! SOMEONE! How do I set the default selection when I'm
using html:options?
> Yeah, actually this might be your best app
1 - 100 of 237 matches
Mail list logo