RE: html:options where values have embedded quotes

2004-03-26 Thread Colm Garvey
Mailing List Subject: Re: html:options where values have embedded quotes Anyone? Doug wrote: We have some customer-supplied selection options that have double quotes in their values, and Struts 1.1 isn't seeming to handle this correctly. Best I can tell from the HTML spec, these should

Re: html:options where values have embedded quotes

2004-03-25 Thread Joe Germuska
We have some customer-supplied selection options that have double quotes in their values, and Struts 1.1 isn't seeming to handle this correctly. Best I can tell from the HTML spec, these should be placed on the page as quot; , which will submit them as %22 , which *should* be seen on the

Re: html:options where values have embedded quotes

2004-03-24 Thread Doug
Anyone? Doug wrote: We have some customer-supplied selection options that have double quotes in their values, and Struts 1.1 isn't seeming to handle this correctly. Best I can tell from the HTML spec, these should be placed on the page as quot; , which will submit them as %22 , which *should*

html:select / html:options

2004-03-23 Thread Christian Schlaefcke
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 = new

RE: html:select / html:options

2004-03-23 Thread Lokanath
: 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 available in the session

RE: html:select / html:options

2004-03-23 Thread Sanoj, Antony (IE10)
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

Re: html:select / html:options

2004-03-23 Thread Mark Lowe
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 / html:options Hi Folks

html:options where values have embedded quotes

2004-03-23 Thread Doug
We have some customer-supplied selection options that have double quotes in their values, and Struts 1.1 isn't seeming to handle this correctly. Best I can tell from the HTML spec, these should be placed on the page as quot; , which will submit them as %22 , which *should* be seen on the

Usage of html:options

2004-02-17 Thread anant.parnami
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

html:options with validate

2004-02-17 Thread Sniadach, Tomasz
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

Repost : Usage of html:options

2004-02-17 Thread anant.parnami
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

Re: Repost : Usage of html:options

2004-02-17 Thread Niall Pemberton
I use the html:optionsCollection which is the same as html:options but uses a more struts standard attribute names and you would do it like this: html:optionsCollection name=myFormName property=countryList label=countryName value=countryID/ Niall - Original Message - From: [EMAIL

html:options and html:select

2004-02-02 Thread Otto, Frank
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

Re: html:options and html:select

2004-02-02 Thread Claire Wall
never tried this myself. HTH claire :) - Original Message - From: Otto, Frank [EMAIL PROTECTED] To: Struts-User (E-Mail) [EMAIL PROTECTED] Sent: Monday, February 02, 2004 12:11 PM Subject: html:options and html:select hello, I have following bean: public class CProduct { private

Re: html:options and html:select

2004-02-02 Thread Mark Lowe
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()); ... html:option value=--/html:option html:options collection=products

AW: html:options and html:select

2004-02-02 Thread Otto, Frank
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: html:select name=FormName property=xxx logic:iterate id=product name=FormName property=ListName option value=bean:write name=product

RE: html:options and html:select

2004-02-02 Thread anant.parnami
Hi Frank Try using Request.setAttribute(collectionName,list); html:select name=formBeanName property=seletedValue html:options collection=collectionName value=id labelProperty=name name=comCProduct/ /html:select I

Re: AW: html:options and html:select

2004-02-02 Thread Mark Lowe
=myListOfBean value=id label=name/ /html:select 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 html:select you can do the following: html:select name

Re: AW: html:options and html:select

2004-02-02 Thread Claire Wall
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: Struts Users Mailing List [EMAIL

RE: html:options and html:select

2004-02-02 Thread Guillermo Meyer
: 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. html:select property=ref html:optionsCollections name=myForm property=myListOfBean value

RE: html:options and html:select

2004-02-02 Thread Jiin-Her Lu
If your list stores objects which is the type of Struts' LabelValueBean (provides only getValue() and getLabel() methods), then you can simply as html:select name=formBeanName property=seletedValue html:options collection=collectionName value=value

nested beans/html:options

2004-01-25 Thread Mohan Radhakrishnan
Hi I am using nested beans. What is the equivalent using nested beans for the following ? html:select name=element property=ruleObjectiveId html:options collection=OBJECTIVE labelProperty=name property=id / /html:select OBJECTIVE is in the session scope. I tried

beginner's html:options question

2004-01-20 Thread Anderson, James H [IT]
html:option related stuff: html:select property=account bean:define id=viewOptions name=preparedData property=view type=java.util.collection/ html:options collection=viewOptions property='value labelProperty=label/ /html:select Here's how I save

Problem accessing database and html:options

2004-01-15 Thread Christian Froemel
the option data-source in the struts-config? ) and store the results in an Array-List. With the results I want to create a select. But how I use the command html:options collections=??? ... and display the results? I will be very glad, if somesome can help me. An small example would be helpful

RE: Problem accessing database and html:options

2004-01-15 Thread Richard Hightower
html:select /, html:option /, html:options /, html:optionsCollection / The html:select / tag renders a drop down selection or list box to the end user. You can specify the options for the html:select/ tag with html:select /, html:option /, html:options /, html:optionsCollection / tags

html:options tag problem

2003-11-17 Thread SasiDharma Tharmarajah
Hi gurus. How does the html:options tag works???. say you are using html:options tag several times in a page. when will the html:options tag flush out the objects to the jsp page. I'm asking this is beacuse in our JSP page we are using html:options tag 8 times.for each iteration it has to load

Re: html:options tag problem

2003-11-17 Thread Mark Lowe
with a-z and regenerate the menu when the user selects a letter. Cheers Mark On 17 Nov 2003, at 10:04, SasiDharma Tharmarajah wrote: Hi gurus. How does the html:options tag works???. say you are using html:options tag several times in a page. when will the html:options tag flush out the objects

WG: Problem with html:options - tag

2003-11-12 Thread Peter Friesleben
I’m receiving this error using Tomcat 4.1 and Struts 1.0 „javax.servlet.ServletException: No getter method available for property vendors for bean under name null” I’m using the html:options tag this way: html:select name=someForm property=vendorID html:options name=someForm property

RE: Problem with html:options - tag

2003-11-12 Thread Nimish Chourey , Tidel Park - Chennai
Probably .. The form tag has the action , which is linked to some different form . Ie say you have form tag like this html:form action=/A method=POST And in struts config , the action is mapped to some form say form name B , then your html options tag should be like html:options name

AW: Problem with html:options - tag

2003-11-12 Thread Peter Friesleben
: Problem with html:options - tag Probably .. The form tag has the action , which is linked to some different form . Ie say you have form tag like this html:form action=/A method=POST And in struts config , the action is mapped to some form say form name B , then your html options tag should be like

html:options maximum length?

2003-10-30 Thread Matt Redman
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: html:select property=consultant style=width: 220px; html:options

Re: html:options maximum length?

2003-10-30 Thread Richard Yee
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.

html:options internationalization

2003-10-27 Thread koen boutsen
Does anyone know how I can use interantionalization in the tag html:options in a html:select. In html:option, a bundle and key attribute exist to use internationalization, but this does not exist in html:options Can anyone help Thanks Koen

Re: html:options internationalization

2003-10-27 Thread Jason Lea
into the ActionForm, and the html:options tag reads the value from the form. koen boutsen wrote: Does anyone know how I can use interantionalization in the tag html:options in a html:select. In html:option, a bundle and key attribute exist to use internationalization, but this does not exist in html:options

How to avoid that Struts html:options adds new line for each option?

2003-10-23 Thread Jan Kester
of 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

URGENT: html:options

2003-10-14 Thread ajay brar
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 page i had

RE: URGENT: html:options

2003-10-14 Thread Daniel Haynes
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:options

RE: URGENT: html:options

2003-10-14 Thread ajay brar
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 static Vector

Re: URGENT: html:options

2003-10-14 Thread Nicolas De Loof
collection attribute of html:options tag is used to set the name of a bean (in some scope) that is a collection of the items off the select-box. You need to put your Vector into page or request scope to use this tag: % request.setAttribute(items, agencyIds); % html:select property

Re: URGENT: html:options

2003-10-14 Thread ajay brar
hi! thanks for the reply. doesn't the jsp import statement followed by the usebean ie, %@ page import=MyUtils % jsp:useBean id=agencyIds type=java.util.Vector / introduce the agencyIds into page scope. also with the example you gave me should html:select property=agencyId html:options

Re: URGENT: html:options

2003-10-14 Thread Nicolas De Loof
: html:options hi! thanks for the reply. doesn't the jsp import statement followed by the usebean ie, %@ page import=MyUtils % jsp:useBean id=agencyIds type=java.util.Vector / introduce the agencyIds into page scope. also with the example you gave me should html:select property=agencyId

form properties and html:options with collection

2003-10-13 Thread Sonam Belbase
=selectedName type=java.lang.String/ form-property name=availableNamesList type=java.util.List/ /form-bean In the JSP: html:form action=/addNewName html:select property=selectedName size=5 multiple=false html:options collection=availableNamesList property=name

RE: form properties and html:options with collection

2003-10-13 Thread Robert Taylor
: Monday, October 13, 2003 12:49 PM To: Struts Users Mailing List Subject: form properties and html:options with collection Hi, What is the best way of setting a Java Collection which holds Java Objects as a property of the form, and retrieving the Object and it's properties on a JSP

Re: form properties and html:options with collection

2003-10-13 Thread Sonam Belbase
in the form. robert -Original Message- From: Sonam Belbase [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 12:49 PM To: Struts Users Mailing List Subject: form properties and html:options with collection Hi, What is the best way of setting a Java Collection which

RE: form properties and html:options with collection

2003-10-13 Thread Robert Taylor
] Sent: Monday, October 13, 2003 1:46 PM To: Struts Users Mailing List Subject: Re: form properties and html:options with collection Robert, In my action, on success I forward the request to a tiles definition called content.addNewName, which in return calls another definition. Could

Re: form properties and html:options with collection

2003-10-13 Thread Sonam Belbase
It's working now. I added a bean:define to define the bean which represents my collection of objects. I believe this is required in order to find the bean specified by the value of the collection attribute in the html:options collection tag. Thanks for your help Robert. SB Robert Taylor wrote

RE: form properties and html:options with collection

2003-10-13 Thread Robert Taylor
value=value/ /html:select robert -Original Message- From: Sonam Belbase [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: form properties and html:options with collection It's working now. I added a bean:define to define

RE: form properties and html:options with collection

2003-10-13 Thread Kris Schneider
=myOptions label=label value=value/ /html:select robert -Original Message- From: Sonam Belbase [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 2:38 PM To: Struts Users Mailing List Subject: Re: form properties and html:options with collection It's working now

html:options

2003-10-12 Thread ajay brar
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

Re: html:options

2003-10-12 Thread Jeff Kyser
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 downside

Re: html:options

2003-10-12 Thread ajay brar
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 class, or perhaps into a Singleton loaded

Simple html:options question

2003-09-11 Thread Kumar M
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

Re: Simple html:options question

2003-09-11 Thread Kris Schneider
Pretty sure you can just do: html:options name=listOfOptionValues/ It should use the list for both the values and the labels. If the list is a property on your form: html:options property=listOfOptionValues/ If the list is a property of some other bean: html:options name=someBean property

getproperty for html:options tag returns null.

2003-09-10 Thread deepaksawdekar
I am using following code in a jsp, html:select property=location styleClass=TextBox size=1 html:options property=locationListValues /html:options /html:select when getLocationListValues return Null i got the error page saying getlocationlistvalues return null and so so... I

Re: getproperty for html:options tag returns null.

2003-09-10 Thread harm
You can always check if its empty with the logic:empty tag. Good luck, Harm. deepaksawdekar [EMAIL PROTECTED] 09/10/2003 01:26 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject getproperty for html:options tag

MessageResource, html:options i182

2003-08-28 Thread Lars Bergstrm
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

RE: MessageResource, html:options i182

2003-08-28 Thread Paul McCulloch
, 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

blank screen when validation fails. appears to be related to html:options

2003-08-22 Thread Rich
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 few

RE: blank screen when validation fails. appears to be related to html:options

2003-08-22 Thread David Friedman
To: Struts Users Mailing List (E-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

RE: How can I get a value and a name that is different on a html:options collection?

2003-07-28 Thread Bard A. Evjen
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]

How can I get a value and a name that is different on a html:options collection?

2003-07-25 Thread Bard A. Evjen
labelBean = new LabelValueBean(i, label); myMonthList.add(labelBean); } return myMonthList; } and a jsp-file with: html:select size=1 property=reportDateMonth html:options property=myMonthList labelProperty=myMonthList/ /html:select But this returns LabelValueBean[i,February] LabelValueBean

RE: How can I get a value and a name that is different on a html:options collection?

2003-07-25 Thread Robert Taylor
] 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 13; i

RE: How can I get a value and a name that is different on a html:options collection?

2003-07-25 Thread Nagaraj_K
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

RE: [newbie]: Accessing labelProperty in html:options

2003-07-22 Thread Amit Kirdatt
in html:options Amit, Sorry, I overlooked your code and missed something. I need to access both the termCode (property) and name(labelProperty) in my action class. Is there a way to do it? Thanks, Shyam --- Amit Kirdatt [EMAIL PROTECTED] wrote: To access the selected value in your action class

Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Dirk Behrendt
this value within a html:options value= tag? html:options value=bean:message key= language.german / does not work. Dirk

RE: Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Yansheng Lin
1. html:options expects a Collection, I think. 2. Try to change to ' for value='bean:.. Key=.. /' -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: July 21, 2003 10:38 AM To: [EMAIL PROTECTED] Subject: Use ApplicationRessources.properties values

Re: Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Sandeep Takhar
: language.german = Deutsch language.english = Englisch Normally such values are used within a JSP page like this: bean:message key= language.german / But how I can use this value within a html:options value= tag? html:options value=bean:message key= language.german / does

[newbie]: Accessing labelProperty in html:options

2003-07-21 Thread Shyam A
Hi, I'm using the html:options tag to populate a drop-down list from a collection. My code is as follows: html:select property=termCode onchange=submitForm(this.form) html:options collection=termList property=value labelProperty=label/ /html:select

RE: [newbie]: Accessing labelProperty in html:options

2003-07-21 Thread Amit Kirdatt
Do the following: html:select property=termCode onchange=submitForm(this.form) html:options collection=termList property=label labelProperty=label/ /html:select -Original Message- From: Shyam A [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:04 PM To: [EMAIL PROTECTED

RE: [newbie]: Accessing labelProperty in html:options

2003-07-21 Thread Amit Kirdatt
To access the selected value in your action class ((MyCodeForm)anActionForm).getTermCode() --Amit -Original Message- From: Amit Kirdatt Sent: Monday, July 21, 2003 5:17 PM To: 'Struts Users Mailing List' Subject: RE: [newbie]: Accessing labelProperty in html:options Do the following

RE: [newbie]: Accessing labelProperty in html:options

2003-07-21 Thread Shyam A
)anActionForm).getTermCode() --Amit -Original Message- From: Amit Kirdatt Sent: Monday, July 21, 2003 5:17 PM To: 'Struts Users Mailing List' Subject: RE: [newbie]: Accessing labelProperty in html:options Do the following: html:select property=termCode onchange

RE: html:options list source question

2003-07-14 Thread Craig Berry
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

html:options list source question

2003-07-13 Thread Craig Berry
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 provide

RE: html:options list source question

2003-07-13 Thread Wendy Smoak
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: html:select property=numFmt html:options collection=numFmtOptions property=value labelProperty=label

html:options

2003-07-09 Thread sjones
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 html:options html:optionsCollection can anyone help me with use one of these tags. I

RE: html:options

2003-07-09 Thread Mathew, Manoj
div id=xxx html:select property=property styleClass=%=myStyle% tabindex=100 html:options collection=collection of possible values property=key labelProperty=value/ /html:select

Re: Struggling with html:options

2003-07-09 Thread sjones
% List o = DirectoryEqualityOperator.getOperationNames(); request.setAttribute(yerSelectBox, o); % html:form action=/search.do html:select property=srchMethod html:options collection=yerSelectBox property=key labelProperty=value / /html:select /html:form form select name=xsrchMethod

RE: Struggling with html:options

2003-07-09 Thread James Childers
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: html:select property=yourFormProperty html:options collection=months property=value

show selected value in html:options field

2003-07-01 Thread Stefan Schaebel
Hello! I'm using html:select and html:options to display a vector: html:select property=selected multiple=true size=6 html:options property=vector/ /html:select Now I would like to show the selected option when the options-field is rendered (the size of the vector is larger than 6

Using html:options/ tag with multiple=true

2003-06-28 Thread Eva Murray
jsp:useBean id=DB scope=page class=csd.RetrieveDropDownData / % pageContext.setAttribute(jurisdictionDis,DB.getJurisdictionDropDown()); % html:select property=jurisdiction size=6 multiple=true styleClass=tabbody html:options collection=jurisdictionDis property=value labelProperty=label/ /html:select

RE: Using html:options/ tag with multiple=true

2003-06-28 Thread Wendy Smoak
Eva wrote: I want the form to be prepopulated with the data which I retrieved from the database, and those items previously selected by the user highlighted . I am unable to do this for the multi-select drop down lists. I vote for the old type of get and set methods do not match problem:

Re: Using html:options/ tag with multiple=true

2003-06-28 Thread Eva Murray
[EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Saturday, June 28, 2003 10:55 AM Subject: RE: Using html:options/ tag with multiple=true Eva wrote: I want the form to be prepopulated with the data which I retrieved from the database, and those items previously

Re: html:options can not automatically match value

2003-06-16 Thread Aswathy Priyarenj
U can use html:optionsCollection tag instead of html:options. 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:15

html:select and html:options example?

2003-06-15 Thread Stephan Niedermeier
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 clicked

html:options for simple 1-50 menu

2003-06-09 Thread Barry Volpe
What is the easiest way to create a menu with name and values of 1-50. Should I do this strictly in my JSP? Should I use a % for loop %? Seems like alot of work to use html:options Collection just to generate numbers 1-50. Barry

RE: html:options for simple 1-50 menu

2003-06-09 Thread Raible, Matt
Use JSTL's forEach with begin and end attributes. c:forEach begin=0 end=50 step=1 var=option c:out value=${option}/ /c:forEach -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 5:08 PM To: Struts Users Mailing List Subject: html:options

Re: html:options for simple 1-50 menu

2003-06-09 Thread Barry Volpe
I like the simplicity of the code. Don't have JSTL installed. I'll have to set it up. - Original Message - From: Raible, Matt [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, June 09, 2003 4:21 PM Subject: RE: html:options for simple 1-50 menu

Can html:options labelProperty made of concatenated bean fields ?

2003-06-06 Thread Ionel Gardais
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, e-mail: [EMAIL

RE: Excluding values inside a logic:iterate tag or an html:options tag

2003-06-06 Thread Kamholz, Keith (corp-staff) USX
, 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, ionel

html:options can not automatically match value

2003-06-04 Thread lcl
Hi all , I have using the following code to express a select control in html using strtus tag: html:select property=projclieid html:options collection=com.nsk.gs.sales.ClientInfo labelProperty=cliename property=clieid / /html:select When this jsp page is running, all is ok

Re: html:options can not automatically match value

2003-06-04 Thread Sakis Chatzinikolaou
html:select name=apartmentForm property=apartmentOffice html:options collection=estateOfficesNames property=estateOfficeID labelProperty=estateOfficeName / /html:select The estateOfficesNames is an attribute set in the request from the action class The apartmentForm is the form bean

Re: html:options can not automatically match value

2003-06-04 Thread lcl
will like : html:select name=project property=projclieid value=bean:write name='project' property='projclieid' filter='true'/ html:options collection=com_nsk_gs_sales_ClientInfo labelProperty=cliename property=clieid / /html:select the output html will like this : select name=projclieid

RE: html:select / html:options

2003-05-27 Thread Abhinav (Cognizant)
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. html:select name=incidentForm property=selectedUnsafe html:option value=nbsp/html:option html:options name=incidentForm property

Re: html:select / html:options

2003-05-27 Thread Denis Avdic
if these two are kept encapsulated in an object. -Original Message- From: Kandi Potter [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

RE: html:options

2003-05-27 Thread shirishchandra.sakhare
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 is the eban

RE: html:options

2003-05-27 Thread Abhinav (Cognizant)
I was able to do it like that. bean:define id=blist name=MyForm property=List type=java.util.Vector/ html:select property=Id html:options collection=list property=ID labelProperty=desc / /html:select Thanks a lot all you ppl. -Original Message

RE: html:select / html:options

2003-05-27 Thread Kandi Potter
: 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. -Original

RE: html:options

2003-05-27 Thread Kandi Potter
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 that. bean:define id=blist name=MyForm

RE: Html:Options usage

2003-03-18 Thread e gg
] 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's my bean class: public class UserAccessBean implements java.io.Serializable { List deptList = new ArrayList(); List brokerList

Html:Options usage

2003-03-17 Thread e gg
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

  1   2   3   4   >