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"
>
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]
---
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,
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
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}
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
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
>
-
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
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
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
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:
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
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=
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
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
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
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
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
-
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
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
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
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
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'
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
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
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
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.
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.
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
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
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");
, 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
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
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
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]
-
--
> 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:
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
> 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]
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
> 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
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
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
> 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).
>
&
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
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
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
46 matches
Mail list logo