RE: html:options selected

2006-11-15 Thread Thor Kristensen
-Original Message- > From: Søren Blidorf [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 15, 2006 12:24 PM > To: 'Struts Users Mailing List' > Subject: SV: html:options selected > > Hi Mano. > > Thanks for your help > > Could you explain it a

RE: html:options selected

2006-11-15 Thread Saeed, Rada
Wednesday, November 15, 2006 12:57 PM To: Struts Users Mailing List Subject: html:options selected Hi. I am trying to get html:select to work for my purpose. Can anybody help me.. c_stand is a String value from PeopleBean in request.getAttribute("people"); cs is a collection

SV: html:options selected

2006-11-15 Thread Søren Blidorf
l: 'Struts Users Mailing List' Emne: RE: html:options selected 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]

RE: html:options selected

2006-11-15 Thread Mano Chinthaka Dasanayaka
st Subject: html:options selected Hi. I am trying to get html:select to work for my purpose. Can anybody help me.. c_stand is a String value from PeopleBean in request.getAttribute("people"); cs is a collection containing values in OptionValueBean. If cs contains values test1,

html:options selected

2006-11-15 Thread Søren Blidorf
Hi. I am trying to get html:select to work for my purpose. Can anybody help me.. c_stand is a String value from PeopleBean in request.getAttribute("people"); cs is a collection containing values in OptionValueBean. If cs contains values test1, test2 and test3 and c_stand contains test2 I wa

Re: Facing Problem using html:select with html:options

2006-10-25 Thread Chris Pratt
In HTML, only the selected values get sent to the server, so when no values in the multi-select are selected, nothing gets sent to the server for that property. Make sure your reset() method clears out the values for that property and you should be ok. (*Chris*) On 10/25/06, Chetan Pandey <[EMA

Facing Problem using html:select with html:options

2006-10-25 Thread Chetan Pandey
Hi All: I have a JSP Form in which one field is a multi-select drop-down box. An array of String is used to represent it I am facing this problem when trying to "Edit" stuff. The Drop-down initially has many different values selected. If I try to change selections everything is Fin

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. ___

html:options Hashtable

2006-09-03 Thread chamal desilva
Hi, Can we display the values of a hashtable in a html drop down menu using struts tags. Thanking You, Chamal. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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

2006-05-10 Thread Kyle Wu
nal Message Follows - > maybe css would be one solution, edit your css class, and use "styleClass" > attribute to ref it > > > > Stanislav 写道: Hi! > > I want to set background color in drop down menu that is generated with > html:options collection.

re: reŁş html:options collection design question

2006-05-10 Thread Stanislav
ribute 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? > &g

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? Her

html:options collection design question

2006-05-09 Thread Stanislav
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: Tnx, Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: ArrayList & html:options

2006-04-17 Thread Kalcevich, Daniel
: Re: ArrayList & html:options On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: > Changing that to: > > > > > > Now produces this error: > > 15:55:34,494 ERROR [action]:253 - Servlet.service() for servlet action > threw exception > javax

Re: ArrayList & html:options

2006-04-17 Thread Wendy Smoak
: ServletException in > '/jsp/templates/tab_content_template.jsp': ServletException in > '/jsp/fine_export.jsp': No name specified ... > Could it have something to do with not specifying the label or the value > as well? Possibly. http://struts.apache.org/struts-el/tagre

RE: ArrayList & html:options

2006-04-17 Thread Kalcevich, Daniel
Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 1:52 PM To: Struts Users Mailing List Subject: Re: ArrayList & html:options On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: > request.setAttribute( "exportDates", exportD

Re: ArrayList & html:options

2006-04-17 Thread Wendy Smoak
On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: > request.setAttribute( "exportDates", exportDates ); //exportDates = > ArrayList > > JSP: > > > > > > Error: > 15:38:53,106 ERROR [action]:253 - Servlet.service() for servlet action > threw exception > javax.servlet.jsp.JspExceptio

ArrayList & html:options

2006-04-17 Thread Kalcevich, Daniel
Everyone, I am trying to use the htm-el:options tag to write out the value of a Select box. I am using an ArrayList of Strings that I am trying to iterate over. I want the value and option to be the same on the output. Here is how I am calling my code... Action: request.setAttribute(

Re: html:options whith a HashMap

2006-02-12 Thread Laurie Harper
ot;); mapa.put("102","Cogeneracion"); hashMapBean.setCodigoM(mapa); pageContext.setAttribute("hashMapBean",hashMapBean); %> and

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

html:options whith a HashMap

2006-02-08 Thread José María Tristán
Hi, I have an application whith a html:options whith two ArrayList to see the "name"(arrayCodigo) and the "label" (arrayDescripcion) Is possible do the same whith a HashMap (key-value)?. How i say

how to construct dynamic html:select html:options

2006-01-18 Thread Melih U. Unsal
my form will construct different number of combo boxes on the screen. for example user will enter 3 and submit the form. then the coming form will show 3 combo boxes. how can i do that with struts. The number of combo boxes is not static so i can not define to action form my combo boxes so can not

Re: How can I keep multiple selection of html:options when I am back

2005-11-15 Thread Danny Lee
I don't know if I understand you right, but if you wan't to get the option selected before validation, just save it in some form Attribute of your Struts Form and then use: value="${myForm.lastSelectedThing}> Cheerz Danny Chen Jerry schrieb: Well, I make multiple selection and submit the p

How can I keep multiple selection of html:options when I am back

2005-11-14 Thread Chen Jerry
Well, I make multiple selection and submit the page, which will be forwarded to if validation is not passed. I want to keep selected the multiple s of when I am back. What can I do? This is the fragment of source code: Thanks in advance. Jerry -

RE: Question about html:options

2005-11-02 Thread Balasubramaniam, Sezhiyan
Message- From: Daniel Henrique Ferreira e Silva [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 5:54 AM To: Struts Users Mailing List Subject: Question about html:options Hi all, I've been using Struts for some time now and suddenly faced this issue that i'm not sure it&

Question about html:options

2005-11-02 Thread Daniel Henrique Ferreira e Silva
Hi all, I've been using Struts for some time now and suddenly faced this issue that i'm not sure it's a bug or a misinterpretation of mine. I have a List in request scope holding HashMaps. Then, i tried to use like this: My HashMap instances have two entries each one: value => some value and

Re: problem with html:select / html:options

2005-10-13 Thread Sunil_Sahu
Troy, I think it should work like this Hope it helps Sunil Troy Bull <[EMAIL PROTECTED]> 10/13/2005 11:33 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject problem with html:select / html:options Hi

Re: problem with html:select / html:options

2005-10-13 Thread Dave Newton
Troy Bull wrote: and if I try this on the same page what I can't figure out is how to make this work: http://struts.apache.org/userGuide/struts-html.html#options Note the differences between property and labelProperty, and marvel at the power of documentation! ;) Also

problem with html:select / html:options

2005-10-13 Thread Troy Bull
Hi I am trying to use the struts taglibs as much as I can and I have the following situation. I have a collection object filled with DTO beans stored in session. The following prints out the list as I would expect: and if I try this on the same page what I can't figure

RE: html:options

2005-04-09 Thread Ruben Cepeda
] * Original Message Follows From: Vinicius Caldeira Carvalho <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: html:options Date: Sat, 09 Apr 2005 09:49:15 -0300 Hello there! I've always used the with the collection

html:options

2005-04-09 Thread Vinicius Caldeira Carvalho
Hello there! I've always used the with the collection attribute, so I had a separate bean with the collection. But now I'd like to have that collection on my form bean cuz it'll be stored on the session, and I have a utility filter that always remove my formbeans stored on the session after th

Using html:options with JSTL

2005-02-23 Thread Nic Werner
Hi, Is there any way to have html:option parse JSTL sql:query results for a dropdown? I have a form containing a drop-down that is populated by a database. My hope is that I could use to walk through it, and if the id matches the value of the Form, pre-select that value. Is this possibl

Re: Regarding HTML:options tag

2005-02-17 Thread Pavel Kolesnikov
gt; I have one doubt regarding the use of html:options tag. > > In the jsp itself I have got a set of values like List questions= "SOME > VALUE OBTAINED FROM THE DATABASE- ie name value pairs". > > In the jsp I have a html:options tag. > > I don't have any entri

Regarding HTML:options tag

2005-02-17 Thread Krishna Mohan Radhakrishnan
HI, I have one doubt regarding the use of html:options tag. In the jsp itself I have got a set of values like List questions= "SOME VALUE OBTAINED FROM THE DATABASE- ie name value pairs". In the jsp I have a html:options tag. I don't have any entries in the form bean for

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

html:options

2005-01-28 Thread Norris Shelton
Here is what I have in the JSP tag file: state is a simple tag that makes a List of State objects available to the page. I tried setting them as a page scope attribute and a request scope attribute. I always get the following message: javax.servlet.jsp.JspException: Cannot find

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

html:options won't get preselected!

2004-12-30 Thread Nadia Kunkov
Hi, I have a form that my action prepopulates and that works fine. For example: Country is FormBean property that is populated from the database by my action. This is all good but I want the user to be able to change the country so I need a dropdown list. Here is what I have:

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
config.xml ... ... ... ... ... ... snippet from my JSP ... ... /> ... ... From the documentation for html:options: The *property* attribute is interpreted as the name of a property of the individual beans included in the collection, and is used to retrieve th

html:options and collections

2004-12-09 Thread jesnook
config.xml ... ... ... ... ... ... snippet from my JSP ... ... ... ... What is the correct way to setup the html:options tag? Is there a way to use OSCache tags so I can cache the DevicesBO in my application? Than

RE: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-11 Thread t t
. > the one that submits the > page). > > Regards, > David > > -Original Message- > From: t t [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 10, 2004 8:05 PM > To: Struts Users Mailing List > Subject: RE: Help needed on question regarding > html:select a

RE: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread David G. Friedman
l:form and html:javascript tags from your invoking page? (i.e. the one that submits the page). Regards, David -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 8:05 PM To: Struts Users Mailing List Subject: RE: Help needed on question regarding html:select and ht

RE: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread t t
ct item, then add > each new item. Creative > use of the iterate tag plus javascript can do it, or > you could find good > examples if you google - that's how I learned how to > do it. > > Regards, > David > > -Original Message- > From: t t [mailto:[EMAIL

Re: Help needed on question regarding html:select and html:options...but...

2004-11-10 Thread t t
Thanks, Erik. I did set it to false. But it's still been validated when submitted. confusing... --- Erik Weber <[EMAIL PROTECTED]> wrote: > There is a "validate" attribute to the "action" > element in > struts-config.xml. You set it to true or false. > > http://struts.apache.org/userGuide/dev_va

RE: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread David G. Friedman
u google - that's how I learned how to do it. Regards, David -Original Message- From: t t [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 6:41 PM To: Struts Users Mailing List Subject: Re: Help needed on question regarding html:select and html:options...cannot turn off

Re: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread Erik Weber
There is a "validate" attribute to the "action" element in struts-config.xml. You set it to true or false. http://struts.apache.org/userGuide/dev_validator.html Erik t t wrote: How can I turn off validator? THanks. --- t t <[EMAIL PROTECTED]> wrote: Or I can set a parameter before executing th

Re: Help needed on question regarding html:select and html:options...cannot turn off validator

2004-11-10 Thread t t
How can I turn off validator? THanks. --- t t <[EMAIL PROTECTED]> wrote: > Or I can set a parameter before executing the added > action. > --- t t <[EMAIL PROTECTED]> wrote: > > > Hi, Erik, > > I got an idea. I can insert another action before > > the actual action be executed. And use javascrip

Re: Help needed on question regarding html:select and html:options... I got an idea.

2004-11-10 Thread t t
Or I can set a parameter before executing the added action. --- t t <[EMAIL PROTECTED]> wrote: > Hi, Erik, > I got an idea. I can insert another action before > the actual action be executed. And use javascript > change a hidden property before executing the added > action, then I can do what i

Re: Help needed on question regarding html:select and html:options... I got an idea.

2004-11-10 Thread t t
Hi, Erik, I got an idea. I can insert another action before the actual action be executed. And use javascript change a hidden property before executing the added action, then I can do what i want to do in the added action. What do you think? I will try it later. Thanks for your help! Tong Eri

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread Erik Weber
JavaScript can change the action URL on the fly. For example: http://www.willmaster.com/possibilities/archives/wmp20030527001.shtml However, I'm not sure how compatible this type of thing will be with the Struts form tag. I've never tried it. I'm surprised others aren't speaking up because the "m

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread t t
Hi,Erik, I think that helps. I have another question. Besides the "action" attribute in html:form, is anywhere else we can specify another "action" corresponding the submission of javascript? Thanks. Tong Erik Weber <[EMAIL PROTECTED]> wrote: There may be other ways or better ways, but one thing

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread Erik Weber
There may be other ways or better ways, but one thing you could do is vary the action URL. You could have the same action class serving slightly different action mappings, some with validation set to true and some with validation set to false. I did what you are trying to do in a non-Struts Ser

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread t t
The problem is, when the form is submitted, it will be validated according to the validator. then error will occur since the user didn't intend to submit and he/she didn't fill other required fields. And in my "acion" program, I don't know how to tell whether it was submitted by "javascript" or

Re: Help needed on question regarding html:select and html:options...

2004-11-10 Thread t t
Thank you for the hint. I will try. Erik Weber <[EMAIL PROTECTED]> wrote:I don't know exactly how do it using JavaScript. However, I know there's a way to do it. But, you'd have to have all list data downloaded to the client's browser (could be undesirable depending on list size), so you may w

Re: Help needed on question regarding html:select and html:options...

2004-11-10 Thread Erik Weber
I don't know exactly how do it using JavaScript. However, I know there's a way to do it. But, you'd have to have all list data downloaded to the client's browser (could be undesirable depending on list size), so you may want to rethink that approach once you figure out how to do it. Obviously i

Help needed on question regarding html:select and html:options...

2004-11-10 Thread t t
Hi, all, I have two html:select as below: --- when user choose item2 from s1, I want to change the collection in s2 from "c2" to "itemC". How can I do that? T

Question regarding html:select and html:options-help!

2004-11-09 Thread t t
Hi, all, I have two html:select as below: --- when user choose item2 from s1, I want to change the collection in s2 from "c2" to "itemC". How can I do that? T

html:options confusion

2004-09-20 Thread Andrew Metcalfe
I'm having troubles with html:options tag, I was hoping for some insight. I've got an ActionForm called "myForm". On that form, I've got a String field iD, and a Collection (Vector) of Struts LabelValueBeans called "myCollection". Appropriate getters and se

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

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

html:options Help

2004-09-15 Thread Priya Jotwani
Can somebody give me an example of how to use for populating my Listbox with the values returned by getFundlist() of my ActionForm ? TIA, Priya

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 c

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

html:options tag with ArrayList of Strings

2004-05-27 Thread Nestor Boscan
Hi I'm working with the html:select and html:options tag and wanted to know if I can create a list box based on an ArrayList that contains Strings. Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit