RE: html:options selected

2006-11-15 Thread Thor Kristensen
gain. > > I am not sure I understand... > > C_stand already has the value of "test2", and still it is not > selected. > > -Oprindelig meddelelse- > Fra: Mano Chinthaka Dasanayaka [mailto:[EMAIL PROTECTED] > Sendt: 15. november 2006 12:18 > Til: 

RE: html:options selected

2006-11-15 Thread Saeed, Rada
You can do it like this : Where cs is your list of values. The above will make the "test2" as the first option in the list, which is selected by default. -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Wednesday, No

RE: html:options selected

2006-11-15 Thread Mano Chinthaka Dasanayaka
Yes u can...just set the value of c_stand to value "test2" in action class.. where u load this page...then it shud work.. Regards, Mano -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 4:27 PM To: Struts Users Mailing List Subject: ht

Re: html:options Hashtable

2006-09-04 Thread nuwan chandrasoma
Hi, I think you can, according to the tag code it is possible, but i havent tried it, give it a try. Thanks, Nuwna On 9/4/06, chamal desilva <[EMAIL PROTECTED]> wrote: Hi, Can we display the values of a hashtable in a html drop down menu using struts tags. Thanking You, Chamal. ___

re: re: re: html:options collection design question

2006-05-10 Thread Kyle Wu
I am not sure if there's better idea than writing your own JavaScript to do that.. Stanislav <[EMAIL PROTECTED]> : Hi! That is fine if i want to set bgcolor to ALL text, but i want to set different bgcolor for different choices in drop down menu. Tnx, Stanislav - Original Message Fo

re: html:options collection design question

2006-05-09 Thread Kyle Wu
maybe css would be one solution, edit your css class, and use "styleClass" attribute to ref it Stanislav <[EMAIL PROTECTED]> 写道: Hi! I want to set background color in drop down menu that is generated with html:options collection. Is there any way to do that? Here is code sample: Tn

Re: html:options whith a HashMap

2006-02-12 Thread Laurie Harper
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) Thank you. -Mensaje original- De: Aidas Semezys [mailto:[EMAIL PROTECTED] Enviado el: jueves, 09 de febrero de 2006 15:05 Para: Struts Users Mailing List Asunto: Re: html:options whith a HashMap Yes it is possible. Suppose you

RE: html:options whith a HashMap

2006-02-09 Thread José María Tristán
92) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) Thank you. -Mensaje original- De: Aidas Semezys [mailto:[EMAIL PROTECTED] Enviado el: jueves, 09 de febrero de 2006 15:05 Para: Struts Users Mailing List Asunto: Re: html

Re: html:options whith a HashMap

2006-02-09 Thread Aidas Semezys
Yes it is possible. Suppose you have bean of type java.util.HashMap in your context under name hashMapBean. Then you write: That's all for it. On 2/8/06, José María Tristán <[EMAIL PROTECTED]> wrote: > > Hi, > > I have an application whith a html:options whith two ArrayList to > se

RE: html:options

2005-04-09 Thread Ruben Cepeda
Viniciius, Here is a link to the options user guide secition of the Struts user guide: http://struts.apache.org/userGuide/struts-html.html#options Look at the LabelName and LabelProprety attributes. * Ruben Cepeda [EMAIL PROTECTED] ***

Re: html:options

2005-01-28 Thread Norris Shelton
I am using a LazyValidatorForm as my backing bean. I assumed that it would be able to handle them automatically, but you got me to thinking. I added in the String[] declaration and it works great. --- Eddie Bush <[EMAIL PROTECTED]> wrote: > Are you getting

Re: html:options

2005-01-28 Thread Eddie Bush
Are you getting any interesting debug statements? Looks to me like the form should be properly populated, even if validation failed. What type of field are the values being put into? If you're looking for multiples, I imagine you're putting them into a String array? Please trim unnecessary dial

Re: html:options

2005-01-28 Thread Norris Shelton
That was it exactly. Thx. Now I have another question. My box is a multi select. If there is a validation error, only the first option will still be selected. --- Kishore Senji <[EMAIL PROTECTED]> wrote: > On Fri, 28 Jan 2005 16:53:16 -0800 (PST), Norris Shelton > <[EMAIL PROTECTED]> wrote:

Re: html:options

2005-01-28 Thread Norris Shelton
The ${formName} is in fact a variable that holds the name of the form. Kishore Senji's solution was what I needed. --- Eddie Bush <[EMAIL PROTECTED]> wrote: > Seems to me you have the form name incorrect? is 'formName' > the name > of the form, or is it a String holding the name of the form? >

Re: html:options

2005-01-28 Thread Kishore Senji
On Fri, 28 Jan 2005 16:53:16 -0800 (PST), Norris Shelton <[EMAIL PROTECTED]> wrote: > Here is what I have in the JSP tag file: > >multiple="true"> > labelProperty="description" /> collection attribute takes a name which holds the Collection and not the collection itself. Assuming that y

Re: html:options

2005-01-28 Thread Eddie Bush
Sorry for the double post. G-Mail hiccuped. -- Eddie Bush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: html:options

2005-01-28 Thread Eddie Bush
Seems to me you have the form name incorrect? is 'formName' the name of the form, or is it a String holding the name of the form? I think you'd find it easier to populate your list in an action. Perhaps you meant to put: If "formName" (above) is the name of your form, I think this is what you

Re: html:options

2005-01-28 Thread Eddie Bush
Seems to me you have the form name incorrect? is 'formName' the name of the form, or is it a String holding the name of the form? I think you'd find it easier to populate your list in an action. Perhaps you meant to put: If "formName" (above) is the name of your form, I think this is what you

RE: html:options won't get preselected!

2004-12-30 Thread Nadia Kunkov
You are right! It was the key against the name. Thank you so much. Nadia -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 11:20 AM To: Struts Users Mailing List Subject: Re: html:options won't get preselected! From: "Nadia Kunko

Re: html:options won't get preselected!

2004-12-30 Thread Wendy Smoak
From: "Nadia Kunkov" <[EMAIL PROTECTED]> > > > Struts will pre-select the item when the 'country' property of the form matches the countryID of the option. What is the exact value of the 'country' property of the form? I'm betting you've got 'Canada' when you need 'CAN'. -- Wendy Smoa

Re: html:options and collections

2004-12-09 Thread Guillaume Cottenceau
Erik Weber writes: > I often write a Struts plug-in that sets static collections (such as > select box values) as ServletContext attributes in the init method. That becomes more complicated when you handle i18n (e.g. in labelProperty). -- Guillaume Cottenceau -

Re: html:options and collections

2004-12-09 Thread Erik Weber
[EMAIL PROTECTED] wrote: I want to use a bean to supply options to a select widget. I have a business object, DevicesBO that has a method that returns a Collection. Class Name: DevicesBO Method: Collection getDevices() The collection is a List of CodeDecodeDTO objects. Class Name: Cod

RE: html:options Help

2004-09-16 Thread Priya Jotwani
on the correct lines : Please let me know if my approach is correct. Also am confused as to what would be the property in TIA, Priya -Original Message- From: Jirole, Amar [mailto:[EMAIL PROTECTED] Sent: Thursday, September 16, 2004 7:03 PM To: 'Struts Users Mailing List'

RE: html:options Help

2004-09-16 Thread Jirole, Amar
: Thursday, September 16, 2004 7:14 AM To: Struts Users Mailing List Subject: RE: html:options Help I have seen the Struts Documentation for the same but couldn't really gather much !! Can someone give me an example of using TIA, Priya -Original Message- From: Priya Jotwani

RE: html:options Help

2004-09-16 Thread Priya Jotwani
I have seen the Struts Documentation for the same but couldn't really gather much !! Can someone give me an example of using TIA, Priya -Original Message- From: Priya Jotwani Sent: Wednesday, September 15, 2004 8:27 PM To: [EMAIL PROTECTED] Subject: html:options Help Can somebody give

RE: html:options Help

2004-09-15 Thread Jirole, Amar
Have you tried http://struts.apache.org/userGuide/dev_html.html? -Original Message- From: Priya Jotwani [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 10:57 AM To: [EMAIL PROTECTED] Subject: html:options Help Can somebody give me an example of how to use for populating

RE: html:options tag with ArrayList of Strings

2004-05-28 Thread Janarthan Sathiamurthy
Yes, U can do that -Original Message- From: Nestor Boscan [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 10:23 AM To: [EMAIL PROTECTED] Subject: html:options tag with ArrayList of Strings Hi I'm working with the html:select and html:options tag and wanted to know if I can create a

RE: html:options tag with ArrayList of Strings

2004-05-28 Thread Dincer Mola \(Yazilim Muh. - Proje Gel. ve Uyg. Gr.\)
Yes, you can do it. Btw, you can do the same thing using Vectors too. > -Original Message- > From: Nestor Boscan [mailto:[EMAIL PROTECTED] > Sent: Friday, May 28, 2004 7:53 AM > To: [EMAIL PROTECTED] > Subject: html:options tag with ArrayList of Strings > > Hi > > I'm working with the