RE: bugs? or limition of struts 1.x? html:select html:option value=

2007-09-14 Thread john lee
Tim, tks for your input, but after i change to html-el:option, it show "null" in the list box on screen, after i change html:select to html-el:select, the value just show on screen, but the list box is gone. do u know why? tks u so much john "Slattery, Tim - BLS"

RE: bugs? or limition of struts 1.x? html:select html:option value=

2007-09-14 Thread Slattery, Tim - BLS
> You can't nest tags in this way. It's not a Struts limitation, it's an XML thing. You can makme it work by using the EL version of the html tags: Or is it agent.myselection? I'm not terribly familiar with the bean tags. -- Tim Slattery [EMAIL PROTECTED] ---

bugs? or limition of struts 1.x? html:select html:option value=

2007-09-14 Thread john lee
Could any expert tell me why? has the value of "illinois" . but, the following code do not set value="illinois', still literal string of "", or this is the limition of Struts 1.x? no matter i use single quote or double quote around,

RE: html:option on a nested collection

2006-03-23 Thread Wang, Hansen
ubject: RE: html:option on a nested collection I have this working using the following code: <% String literal =(String) act; %> But as you can see I am using java in the jsp: can anyone advise of some other way of doing this -Original Message- From: Vinit Sharm

RE: html:option on a nested collection

2006-03-23 Thread Shoukat, Faisal
15:35 To: Struts Users Mailing List Subject: Re: html:option on a nested collection Try using: If act is the third element in the list apps. On 3/23/06, Shoukat, Faisal <[EMAIL PROTECTED]> wrote: > > When I do the below in the form it submits > {exampleFormBean.apps.actions.act}

RE: html:option on a nested collection

2006-03-23 Thread Shoukat, Faisal
logic iterate tag : mailto:[EMAIL PROTECTED] Sent: 23 March 2006 15:35 To: Struts Users Mailing List Subject: Re: html:option on a nested collection Try using: If act is the third element in the list apps. On 3/23/06, Shoukat, Faisal <[EMAIL PROTECTED]> wrote: > > When I do the bel

Re: html:option on a nested collection

2006-03-23 Thread Vinit Sharma
n > apps > there is a getter for actions. > > There is no getter for act as this is deifined in the iterate tag > > Still stuck!! > > -Original Message- > From: Vinit Sharma [mailto:[EMAIL PROTECTED] > Sent: 23 March 2006 15:01 > To: Struts Users Mailing List >

RE: html:option on a nested collection

2006-03-23 Thread Shoukat, Faisal
- From: Vinit Sharma [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 15:01 To: Struts Users Mailing List Subject: Re: html:option on a nested collection You can use EL extention of html tag and use something like this: Assuming getters are defined for all properties. Regds, On 3/23/06, Shoukat

Re: html:option on a nested collection

2006-03-23 Thread Vinit Sharma
You can use EL extention of html tag and use something like this: Assuming getters are defined for all properties. Regds, On 3/23/06, Shoukat, Faisal <[EMAIL PROTECTED]> wrote: > > Hi Guys, > > > > I have a formBean which has a collection of objects within it called Apps. > Each App object ha

html:option on a nested collection

2006-03-23 Thread Shoukat, Faisal
Hi Guys, I have a formBean which has a collection of objects within it called Apps. Each App object has several fields with one of these fields being a collection or list of Strings. ExampleFormBean properties are String Name String Class String Student List apps Each app object

Re: How to display combination of two columns in label of html:option

2006-03-01 Thread digant . k . joshi
Rick: What is benefit of using standard jstl over html:option. One benefit is to problem like mine. Any other ? Digant "Rick Reumann" <[EMAIL PROTECTED]> 03/01/2006 04:32 PM Please respond to "Struts Users Mailing List" To:

Re: How to display combination of two columns in label of html:option

2006-03-01 Thread digant . k . joshi
ruts Users Mailing List" cc: Subject:Re: How to display combination of two columns in label of html:option On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In my jsp I am using users ArrayList which is collection of User bean on > server side. > M

Re: How to display combination of two columns in label of html:option

2006-03-01 Thread Michael Jouravlev
On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In my jsp I am using users ArrayList which is collection of User bean on > server side. > My drop down list works fine as under when I use only one display > userNameShort in my example. > > > Choose User... >property=

Re: How to display combination of two columns in label of html:option

2006-03-01 Thread Rick Reumann
I don't use the html:options tag but standard jstl with html:option Choose User... () On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > In my jsp I am using users ArrayList which is collection of User bean on > server side. > My drop

How to display combination of two columns in label of html:option

2006-03-01 Thread digant . k . joshi
In my jsp I am using users ArrayList which is collection of User bean on server side. My drop down list works fine as under when I use only one display userNameShort in my example. Choose User... \ Now I want to comb

RE: html:option, how to print html characters in the label.

2006-02-20 Thread Robert Alexandersson
f" in the options tag. /Robert A -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 11:35 AM To: Struts Users Mailing List Subject: Re: html:option, how to print html characters in the label. If you're looking for a way to inde

Re: html:option, how to print html characters in the label.

2006-02-20 Thread Nicolas De Loof
If you're looking for a way to indent options in a select box, you should use the HTML tag. Nico. Robert Alexandersson a écrit : Hello, i want to output the String " Level 2" in my optionlists, but the label attribute of options does not return this but the transforemed   mending it pr

html:option, how to print html characters in the label.

2006-02-20 Thread Robert Alexandersson
Hello, i want to output the String " Level 2" in my optionlists, but the label attribute of options does not return this but the transforemed   mending it prints the text instead, is there any way around this? Regards Robert A -

RE: Problem whith a arrayList and a html:option

2006-02-08 Thread José María Tristán
html:option Hi, Try this out: In the formBean, instead of an array list, try putting a String array. ActionForm: private String[] listEdad = null; public String[] getListEdad () { return listEdad; } public void setListEdad (String[] listEdad) { this.listEdad = listEdad

RE: Problem whith a arrayList and a html:option

2006-02-07 Thread Anjishnu Bandyopadhyay
best regards, Anjishnu. -Original Message- From: José María Tristán [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 8:13 PM To: user@struts.apache.org Subject: Problem whith a arrayList and a html:option Hello, Sorry by the text but I speak a little english. I have a

Problem whith a arrayList and a html:option

2006-02-07 Thread José María Tristán
Hello, Sorry by the text but I speak a little english. I have a problem with a struts application. I want capture data to a multiple select. I use a Arraylist into a Bean. This is a part of my code of the actionform: private List listEdad = new ArrayList(); public List getListEdad() { ret

Re: using html:option tag

2005-09-27 Thread glenn . deschenes
The tag has an attribute value. http://struts.apache.org/userGuide/struts-html.html#select The value to compare with for marking an option selected. [RT Expr] HTH, Glenn <[EMAIL PROTECTED]> 27/09/2005 12:08 PM Please respond to "Struts Users Mailing List" To cc Subject u

Re: using html:option tag

2005-09-27 Thread Wendy Smoak
From: <[EMAIL PROTECTED]> This works fine and I can save the correct value to the database. The question I have is how do I display the same option tag when updating the user and the details are returned from a database. The same JSP snippet you posted should work in both the 'add' and 'edit'

using html:option tag

2005-09-27 Thread faisal.shoukat
Hi All, I am using the html option tag embedded within the html select tag to select a value from a drop down list as follows: Mr Mrs This works fine and I can save the correct value to the database. The question I have is how do I display the same option

Re: Problem with html:option default selected

2005-09-14 Thread Laurie Harper
http://svn.apache.org/builds/struts/maven/trunk/site-test/struts-taglib/tlddoc/html/tld-summary.html See, in particular, the select, option, options, and optionsCollection tags. L. Kade Jeevan Kumar wrote: Hi! What is the corresponding code in Struts for the given html Two one -Thanks

Re: Problem with html:option default selected

2005-09-14 Thread Ugur Cetinkaya
U must set formbean value for default select. For example if formbean select=property name value is 1, then it will be selected . On 9/14/05, Kade Jeevan Kumar <[EMAIL PROTECTED]> wrote: > > Hi! > > What is the corresponding code in Struts for the given html > > > Two > one > > > -Thanks i

Problem with html:option default selected

2005-09-14 Thread Kade Jeevan Kumar
Hi! What is the corresponding code in Struts for the given html Two one -Thanks in Advance Jeevan - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.

Re: reg. html:option tag -- solved

2005-09-08 Thread peru cheppanu
Here is the solution for the issue I raised. Yeah, it is a dumb question. If it is only one preselected vlaue then use "value" in html:select. The catch here that I understood later is property in html:select should be array of strings if strings are displayed in the option list.

Re: reg. html:option tag

2005-09-08 Thread peru cheppanu
Let me rephrase my question here.. has "value" attribute that is to be populated if one of the options is to be pre-selected. What if I have to pre select multiple options.. may be using optionCollections etc. something like html:select having a "value[]" so that I can put in all values tha

reg. html:option tag

2005-09-08 Thread peru cheppanu
How would I see that an element is pre-selected or highlighted just the way it happens with selected keyword in regular tag.. What I am trying to do here is populate a collection of objects on multi-select box, some of them pre-populated. I tried http://mail.yahoo.com

Re: html:option

2005-06-14 Thread Stéphane Zuckerman
Hello Amitava, [EMAIL PROTECTED] a écrit : I want xxx Is there a way out to select a default value at design time? (I hate javascript!!... lol. ) You could always prepopulate your form before forwarding to the JSP : public ActionForward execute(...) { form.setMySelect("my value");

RE: html:option

2005-06-14 Thread Nitish Kumar
, 2005 11:53 AM To: user@struts.apache.org Subject: html:option I want xxx Is there a way out to select a default value at design time? (I hate javascript!!... lol. ) Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The

html:option

2005-06-13 Thread amitava . basak
I want xxx Is there a way out to select a default value at design time? (I hate javascript!!... lol. ) Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments

Re: html:option tag

2005-04-21 Thread Erik Weber
Yes, form field values (generated by the Struts tags) are synced with corresponding ActionForm field values when the page is rendered. So you can override the ActionForm's reset method to specify initial values. But typically you only want to do this when you are showing a fresh "add" form, not

html:option tag

2005-04-20 Thread IVAN CORVILLO
Hi there, Is it possible to pre-select a value from a dropdownlist htm:option tag? Thanks Iván Corvillo Iconic, SL Molinot 53 Pol.Ind.El Camí Ral 08860 Castelldefels Tel: 902 195 962 / 93 419 54 45 Fax: 93 636 21 42 [EMAIL PROTECTED] -

Re: html:option problem

2004-11-23 Thread Richard Bywater
-- > From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 23, 2004 2:44 PM > To: 'Struts Users Mailing List' > Subject: RE: html:option problem > > > This: > > > > produces this: > > > > instead of this:

RE: html:option problem

2004-11-23 Thread Dave Bender
No, it's terminated. It's got an end tag . The body of the tag becomes the value. -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 3:27 PM To: 'Struts Users Mailing List' Subject: RE: html:opt

RE: html:option problem

2004-11-23 Thread Slattery, Tim - BLS
> This: > > produces this: > > instead of this: > OK, so now I look at this a bit more closely. You haven't terminated the tag. It should read: I would have expected an error message from that but what do I know? -- Tim Slattery [EMAIL PROTECTED]

RE: html:option problem

2004-11-23 Thread Dave Bender
It references "/WEB-INF/struts-html.tld" -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 2:44 PM To: 'Struts Users Mailing List' Subject: RE: html:option problem > This: > > produces t

RE: html:option problem

2004-11-23 Thread Slattery, Tim - BLS
> This: > > produces this: > > instead of this: > Are you sure the "html" prefix references the EL version of the taglib? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

html:option problem

2004-11-23 Thread Dave Bender
Can anybody help me spot what I'm missing in creating an HTML SELECT box with the html:option tag? I'm iterating through a list of objects that have IDs and Names, plunking the ids in for the value and the name for the name. But the tag seems to insist that the bean isn't there

RE: Appending html:option to a html:link

2004-07-01 Thread McCormack, Chris
uld get queryString = "?foo&cheese"; if you see what I mean) hth Chris McCormack -Original Message- From: Chris Roderick [mailto:[EMAIL PROTECTED] Sent: 01 July 2004 14:14 To: Struts Users Mailing List Subject: RE: Appending html:option to a html:link Thank you for your repl

RE: Appending html:option to a html:link

2004-07-01 Thread Chris Roderick
> Sent: 01 July 2004 15:07 > To: Struts Users Mailing List > Subject: RE: Appending html:option to a html:link > > Dont think its possilbe unless you use a bit of javascript. > As its lunchtime I have knocked out a bit of a solution in javascript (not tested). > &

RE: Appending html:option to a html:link

2004-07-01 Thread McCormack, Chris
uot;+newValue; } function doLink(link){ location.href=link+queryString; } DHTML Java click meh -Original Message- From: Chris Roderick [mailto:[EMAIL PROTECTED] Sent: 01 July 2004 13:49 To: [EMAIL PROTECTED] Subject: Appending html:option to a html:link Hi

Appending html:option to a html:link

2004-07-01 Thread Chris Roderick
Hi, I have a JSP page that has a list of hml:links, each with a map of attributes appended e.g.: chart (where attributes is a map). On the same page, I have a html:select e.g.: DHTML Java When a user clicks on the link, I would like to append the currently se

Struts html:option with an 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 additional