Re: How can I construct STRUTS select options tag according to aparameter ?

2003-08-30 Thread Ted Husted
with Struts, for a working example of using a plugin to create a LabelValue collection. -Ted. Fumitada Hattori wrote: Hi there. How can I construct STRUTS select options tag according to a parameter ? I got a jsp named "example_1.jsp". One accesses the page with a parameter like exa

How can I construct STRUTS select options tag according to a parameter ?

2003-08-30 Thread Fumitada Hattori
Hi there. How can I construct STRUTS select options tag according to a parameter ? I got a jsp named "example_1.jsp". One accesses the page with a parameter like example_1.jsp?id=2 . Now what I wanna do is that the example_1.jsp get the value of id parameter and construct select o

RE: Populate select options with Integers

2003-03-31 Thread James Mitchell
; --- apachep2 <[EMAIL PROTECTED]> wrote: > > Have you looked at label-value? > > > > -Original Message- > > From: Dhruva B. Reddy > > [mailto:[EMAIL PROTECTED] > > Sent: March 31, 2003 3:00 PM > > To: Struts Users Mailing List > > Subjec

RE: Populate select options with Integers

2003-03-31 Thread Dhruva B. Reddy
PM > To: Struts Users Mailing List > Subject: Populate select options with Integers > > Hi, > > I'm trying to populate a drop down list with > integers. > Basically, I want the following to be generated: > > > 1 > 2 > 3 &g

RE: Populate select options with Integers

2003-03-31 Thread apachep2
Have you looked at label-value? -Original Message- From: Dhruva B. Reddy [mailto:[EMAIL PROTECTED] Sent: March 31, 2003 3:00 PM To: Struts Users Mailing List Subject: Populate select options with Integers Hi, I'm trying to populate a drop down list with integers. Basically, I wan

Populate select options with Integers

2003-03-31 Thread Dhruva B. Reddy
Hi, I'm trying to populate a drop down list with integers. Basically, I want the following to be generated: 1 2 3 4 Is there an easy way to do this? I can't seem to find anything in the documentation or on ___

RE: generating select options from a previous select

2003-03-11 Thread Mark Galbreath
: [EMAIL PROTECTED] Subject: generating select options from a previous select Hello, I have a form with two select tags. I want the options for the second to be dependent on the option chosen for the first. What is the best way to accomplish this? If java script is the answer, how do I obtain the

RE: generating select options from a previous select

2003-03-11 Thread James Mitchell
mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2003 1:46 PM > To: [EMAIL PROTECTED] > Subject: generating select options from a previous select > > > Hello, > > I have a form with two select tags. I want the options for > the second to be > dependent on the opti

generating select options from a previous select

2003-03-11 Thread Clauson, Kelly
Hello, I have a form with two select tags. I want the options for the second to be dependent on the option chosen for the first. What is the best way to accomplish this? If java script is the answer, how do I obtain the value of the option chosen in the first select (I'm new to web apps)? What I'

Re: RowSetDynaClass, select options

2003-01-31 Thread Kris Schneider
Heather, What exactly do you mean by "doesn't work"? Is an exception thrown? Is the output rendered incorrectly? Quoting Heather Buch <[EMAIL PROTECTED]>: > No, it doesn't. At least it didn't for me. "value" from value="<%= firstName %>"> doesn't work. > > It would be so great if there were a

Re: RowSetDynaClass, select options

2003-01-31 Thread Heather Buch
No, it doesn't. At least it didn't for me. "value" from doesn't work. It would be so great if there were a way to create a concatenated label for a select menu. Currently, I have a getDisplay() in some of my beans, which returns a concatenation of some other strings. I present it like this:

Re: RowSetDynaClass, select options

2003-01-24 Thread Kris Schneider
Think this'll work: Quoting "Cook, Graham" <[EMAIL PROTECTED]>: > > Hi, Im using the RowSetDynaClass to produce a java.util.List of values from > a database which are displayed in > the JSP as follows:- > > > >labelProperty="first_name" />

RowSetDynaClass, select options

2003-01-24 Thread Cook, Graham
Hi, Im using the RowSetDynaClass to produce a java.util.List of values from a database which are displayed in the JSP as follows:- What I would like to do is concatenate two fields in the java.util.List and use that as the labelProperty so the HTML OPTIONS

RE: select, options, define???

2002-12-24 Thread VEDRE, RANAPRATAP REDDY
login fields. -rana. -Original Message- From: Jitendra Singh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 7:25 AM To: [EMAIL PROTECTED] Subject: select, options, define??? I am still fighting .. help help!! I have a form with 10 login id displayed as

select, options, define???

2002-12-24 Thread Jitendra Singh
I am still fighting .. help help!! I have a form with 10 login id displayed as text field and ther admin rights chosen from a drop down lists .. all drop down lists are same. looks like this .. Login Id1 AdminRight1 Login Id2AdminRight2 Login Id3AdminRight2 . .

Select options with non string property targets

2002-12-03 Thread Chris Burnley
Is it possible for me to have something like this: where on my ActionForm, I have something like this: public UserType getUserType() public Collection getUserTypes() public void setUserType(UserType type) I don't want to have to deal with the labels, but rather have the s

Re: how to dynamically generate select options from arrays

2002-11-13 Thread matthew yee-king
AIL PROTECTED]> wrote: > I'm using struts 1.0. > > I have a User object with a string array availableGroups. I want to > generate a select options list from this array in a jsp. > > Using a session bean of type User named currentUser, I can iterate the > array like t

how to dynamically generate select options from arrays

2002-11-13 Thread matthew yee-king
Hello list people I'm using struts 1.0. I have a User object with a string array availableGroups. I want to generate a select options list from this array in a jsp. Using a session bean of type User named currentUser, I can iterate the array like this: but i can't work out how

Re: reuse select/options?

2002-11-06 Thread Eddie Bush
No - but you can sure put the collection in application scope, if that data is static. Andy Kriger wrote: I have a form that repeats a credit card validation portion multiple times. What is the best way to only have to write html:select/html:options once? Is there a way to give the first use an

reuse select/options?

2002-11-06 Thread Andy Kriger
I have a form that repeats a credit card validation portion multiple times. What is the best way to only have to write html:select/html:options once? Is there a way to give the first use an id and then refer to that by reference? thx andy kriger -- To unsubscribe, e-mail:

Re: Select Options

2002-09-09 Thread Craig Tataryn
the tags respectively.. Make sense? Craig. - Original Message - From: "Smith, Johnathan M." <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, September 09, 2002 1:01 PM Subject: R

Re: Select Options

2002-09-09 Thread Michael Lee
han M." <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, September 09, 2002 1:01 PM Subject: RE: Select Options > Can you please help me some more with details > > -Original Message--

RE: Select Options

2002-09-09 Thread Karr, David
> -Original Message- > From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 09, 2002 10:01 AM > To: 'Struts Users Mailing List' > Cc: '[EMAIL PROTECTED]' > Subject: RE: Select Options > > Can you please help me some

RE: Select Options

2002-09-09 Thread Smith, Johnathan M.
Can you please help me some more with details -Original Message- From: Carl Bacher [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 12:59 PM To: Struts Users Mailing List Subject: Re: Select Options Smith, Johnathan M. wrote: >I am trying to find out how to make a sel

Re: Select Options

2002-09-09 Thread Carl Bacher
Smith, Johnathan M. wrote: >I am trying to find out how to make a select (dropdown list) selected a >option at the time of the page is loaded. Sample > >1) I selected a option from my dropdown box and and click submit button >2) The FormAction find that I did not entered all the requested text

Select Options

2002-09-09 Thread Smith, Johnathan M.
I am trying to find out how to make a select (dropdown list) selected a option at the time of the page is loaded. Sample 1) I selected a option from my dropdown box and and click submit button 2) The FormAction find that I did not entered all the requested text boxs and it redisplays the page a

how can I set the values in the form of a iteration (logic:iterate) on the select options (html:select)

2002-04-26 Thread Aroui, Dr. Djelloul
Vehiclepark is a Bean with the property cars (cars is a collection of a Car). Car is a bean with the properties id and vehicleparkId hier ist my jsp-code and hier ist my VehicleparkForm: ArrayList cars = new ArrayList(); public ArrayList getCars() { return cars; } public void setCa

RE: Forcing a form-reload OR a select Options reload

2002-03-14 Thread theron . kousek
exander Jesse -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 6. März 2002 18:07 To: Struts Users Mailing List Subject: Forcing a form-reload OR a select Options reload Is there a way to cause an html select control to "reload from a different c

RE: Forcing a form-reload OR a select Options reload

2002-03-13 Thread Jesse Alexander (KADA 12)
OR a select Options reload Is there a way to cause an html select control to "reload from a different collection" -OR- to "update the collection and have the html select be refreshed"? If I have: Can I automatically repopulate the psindustrytype collection if

Forcing a form-reload OR a select Options reload

2002-03-06 Thread theron . kousek
Is there a way to cause an html select control to "reload from a different collection" -OR- to "update the collection and have the html select be refreshed"? If I have: Can I automatically repopulate the psindustrytype collection if the user clicks on a checkbox on the form?Is there

Re: select/options/option

2002-01-14 Thread Manuel Martin
Hello, On Fri, 11 Jan 2002 15:48:31 -0800 Jason Wells <[EMAIL PROTECTED]> wrote: > Using the tag, is there a way to set an option to be > initially selected? I'm looking for something equivalent to > > blah > > I don't see mention of this in the online docs for the HTML taglib. This can be

RE: select/options/option

2002-01-14 Thread Larry Maturo
5:49 PM To: Struts Users Mailing List Subject: Re: select/options/option Thanks for the summarized info. Using the tag, is there a way to set an option to be initially selected? I'm looking for something equivalent to blah I don't see mention of this in the online docs for

Re: select/options/option

2002-01-12 Thread Arron
The value which is returned from the "property" property in the select tag will make the choice for you if one of the choices matches this value. eg. Use the options tag running off a list, and if the property which is specified in the select tag matches one, Struts will select it for you. Ar

Re: select/options/option

2002-01-11 Thread Jason Wells
Thanks for the summarized info. Using the tag, is there a way to set an option to be initially selected? I'm looking for something equivalent to blah I don't see mention of this in the online docs for the HTML taglib. Thanks, Jason Larry Maturo wrote: > Since I see these questions come up

select/options/option

2002-01-10 Thread Larry Maturo
Since I see these questions come up, and I just got them figured out, I thought I would share them with the mailing list. Select can be used with: a: A collection of strings, such as an arraylist b: A collection of beans, each of which has string fields c: Hard coded values I know you can combi

Indexed properties with multiple select options

2001-07-18 Thread Michael Terry
g.reflect.Method.invoke(Native Method) at org.apache.struts.util.PropertyUtils.setIndexedProperty(PropertyUtils.java:688) I'm quite new to Struts, and can't understand what I'm doing wrong! Is it actually possible to use multiple select options with indexed properties? Any ideas? Thanks! Michael

RE: select options doesn't work

2001-06-15 Thread Krueger, Jeff
2001 11:10 AM Subject: RE: select options doesn't work look at the subscription.jsp in the strutsexample. -Original Message- From: Pal, Gaurav [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 7:18 AM To: '[EMAIL PROTECTED]' Subject: select options doesn't work

RE: select options doesn't work

2001-06-15 Thread Kiet Nguyen
look at the subscription.jsp in the strutsexample. -Original Message- From: Pal, Gaurav [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 7:18 AM To: '[EMAIL PROTECTED]' Subject: select options doesn't work Hi, I have been trying to get the select options tag to w

RE: select options doesn't work

2001-06-15 Thread Pal, Gaurav
Thanks for your suggestion - but it still doesn't work...I keep getting the same exception. Gaurav -Original Message- From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 10:25 AM To: [EMAIL PROTECTED] Subject: Re: select options doesn't work Hi! Try

Re: select options doesn't work

2001-06-15 Thread Linnea Ahlbeck
Hi! Try to change your property for the option to a boolean!! private String strValue; private boolean value; /Linnéa - Original Message - From: "Pal, Gaurav" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 4:18 PM Subject: select optio

select options doesn't work

2001-06-15 Thread Pal, Gaurav
Hi, I have been trying to get the select options tag to work in the html tag library. I tried to follow the sample code given in the struts-mailing list. I keep getting jsp exceptions at org.apache.struts.taglib.template.InsertTag.doEndTag ... The code snippets are below...any help is

Re: select options

2001-03-08 Thread Martin Cooper
The FormBean will be updated with the selection. Your DataBean will not be modified. -- Martin Cooper - Original Message - From: "Nick Pellow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 08, 2001 3:16 PM Subject: Re: select options >

Re: select options

2001-03-08 Thread Nick Pellow
k Pellow" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 07, 2001 5:01 PM > Subject: select options > > > Hi, > > Looking at: > > > > http://jakarta.apache.org/struts/struts-html.html#select > > > > I notice that

Re: select options

2001-03-07 Thread Martin Cooper
riginal Message - From: "Nick Pellow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 07, 2001 5:01 PM Subject: select options > Hi, > Looking at: > > http://jakarta.apache.org/struts/struts-html.html#select > > I notice that for the name a

select options

2001-03-07 Thread Nick Pellow
Hi, Looking at: http://jakarta.apache.org/struts/struts-html.html#select I notice that for the name attribute, the following description is given: name The fully-qualified java class name of the bean containing the underlying property. [RT Expr] Is this correct? I thought 'type' was usually u

Question/Problem using Multiple Select Options

2001-03-07 Thread Spencer Smith
Help! Unable to send back muliple select options. // Define the Array protected String[] geography; // Get the Array public String[] getGeography() { return (geography); } // Set the Array public void setGeography(String[] geography) { { this.geography = geography

Re: Struggling with select/options

2001-03-05 Thread Eric Rasmussen
essage - From: "Martin J. La Jeunesse" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 26, 2001 5:42 PM Subject: Struggling with select/options > The examples I've seen using property="someProperty" /> all seem to reference a co

Struggling with select/options

2001-03-03 Thread Martin J. La Jeunesse
The examples I've seen using all seem to reference a collection defined in the same jsp as the options tag. Could someone provide a rookie with an example where the collection bean is not defined in the same jsp, but rather by, say an action servlet or an application bean? For example, say I've g

RE: Struggling with select/options

2001-02-27 Thread Martin J. La Jeunesse
[EMAIL PROTECTED] > Subject: Re: Struggling with select/options > > > > Did you put an int in your collection ? Did you try with a Integer ? > > Not in the collection of course but check you don't have an > int which should > be an Integer or a String somewhere. >

Re: Struggling with select/options

2001-02-27 Thread Jean-Noël Ribette
> Did you put an int in your collection ? Did you try with a Integer ? Not in the collection of course but check you don't have an int which should be an Integer or a String somewhere.

Re: Struggling with select/options

2001-02-27 Thread Jean-Noël Ribette
- Original Message - From: Martin J. La Jeunesse <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 27, 2001 1:57 PM Subject: Struggling with select/options > The examples I've seen using property="someProperty" /> all seem to refe

Struggling with select/options

2001-02-27 Thread Martin J. La Jeunesse
The examples I've seen using all seem to reference a collection defined in the same jsp as the options tag. Could someone provide a rookie with an example where the collection bean is not defined in the same jsp, but rather by, say an action servlet or an application bean? For example, say I've g

RE: Select/Options Tag

2001-02-23 Thread Chalmers, Douglas
Thanks for that. Got it passing a string array now. Managed to pass all options by calling a script function to select them all before posting. "Chalmers, Douglas" wrote: > A tag reference can maintain a String from a SELECT statement within a > form bean, but only the ONE actually selected.. >

Re: Select/Options Tag

2001-02-22 Thread Craig R. McClanahan
"Chalmers, Douglas" wrote: > A tag reference can maintain a String from a SELECT statement within a > form bean, but only the ONE actually selected.. > > How can I maintain ALL the OPTIONS within a SELECT box within a form > bean?? > This bug was just fixed, so you will need the most current nig

Select/Options Tag

2001-02-22 Thread Chalmers, Douglas
A tag reference can maintain a String from a SELECT statement within a form bean, but only the ONE actually selected.. How can I maintain ALL the OPTIONS within a SELECT box within a form bean?? Doug Chalmers Software Development Petrotechnics Ltd Exploration House Exploration Drive Aberdeen 707