tatic Collection getCardOptions()
{
Vector creditCardOptions = new Vector();
creditCardOptions.add(new LabelValueBean("MasterCard", "mc"));
creditCardOptions.add(new LabelValueBean("Visa", "visa"));
creditCardOptions.add(new LabelValueBean("Amer
>
>
> >
> >The needs to be provided with the property it's associated to,
> >the one on your form bean that will hold the actual value selected.
> >
> > >property="goTo" size="1">
> > >name="PageDetailView"
&
xt.invokeNext(StandardPipeline.java:643)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardContextValve.invok
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline
On Sun, 14 Mar 2004 Timo Tjäder
uot; should be a property on your form bean.
>
>hth,
>
>Hubert
>
>
>
>--- Timo_Tjäder <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have problems with optionsCollection, when used with
>> custom tag.
>>
>> 1. I set up in a bean Labe
gt;
> I have problems with optionsCollection, when used with
> custom tag.
>
> 1. I set up in a bean LabelValueBean object in a Vector
> 2. pass it back to form and try to create a
>
> This part should display a combo box with options, but
> it just does not work. It does
Hi,
I have problems with optionsCollection, when used with
custom tag.
1. I set up in a bean LabelValueBean object in a Vector
2. pass it back to form and try to create a
This part should display a combo box with options, but
it just does not work. It does not display anything.
Html code is
thank you for all your useful input!!! you guys are brilliant!!
[EMAIL PROTECTED]
09/24/03 04:12 PM
Please respond to "Struts Users Mailing List"
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject:LabelValueBe
--- Varun Garg <[EMAIL PROTECTED]> wrote:
> It is easier to use this class for Display purposes
> just like the LabelValueBean.
The implementation of your class needs to be completely rewritten to use
an array of Strings instead of individual variables. The current
impleme
Why not just add it to a Collection of Strings?
-Tim
-Original Message-
From: Varun Garg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:19 PM
To: [EMAIL PROTECTED]
Subject: RE: LabelValueBean - 3 fields?
I created a StringsClass with upto 10 variables.
package
It is easier to use this class for Display purposes
just like the LabelValueBean.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:23 PM
To: Struts Users Mailing List
Subject: RE: LabelValueBean - 3 fields?
If you need a class that
At 4:12 PM -0400 9/24/03, [EMAIL PROTECTED] wrote:
Hi, is it possible to store 3 fields in LabelValueBean instead of 2?
i.e. value, label & description?
You could subclass LabelValueBean... (or just write your own bean
with whatever properties you like!)
Actually, in Struts 1.1 LabelValue
If you need a class that stores 10 Strings, you should be using an array
instead of 10 different variables.
David
--- Varun Garg <[EMAIL PROTECTED]> wrote:
> I created a StringsClass with upto 10 variables.
>
>
> package com.xxx.valueobjects;
>
> import java.io.Serializable;
> import java.util
--- [EMAIL PROTECTED] wrote:
> Hi, is it possible to store 3 fields in LabelValueBean instead of 2?
> i.e. value, label & description?
You could subclass LabelValueBean and add the description field.
David
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, e
Yes,
For that you need to extend the LabelValueBean and add one more variable
know as description and write setter and getter method.
Thanks
Nazeer
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:13 PM
To: Struts Users
8=" + var8 + "\n");
sb.append("var9=" + var9 + "\n");
sb.append("var10=" + var10 + "\n");
sb.append("]\n");
return sb.toString();
}
}
-Original Message-
From: [EMAIL PROTECTED]
[ma
Hi, is it possible to store 3 fields in LabelValueBean instead of 2?
i.e. value, label & description?
thanx!
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
This transmittal and any attachments may contain confidential, privileged or sensitive
information an
According to several sources (book and Internet) you should be able to use
the LabelValueBean to represent the value and label pair used for a set of
checkboxes. Unfortunately, none of them actually show the ActionForm methods
which seem to be relevant as at the moment I can't get it to wor
al Message -
From: "Martin Naskovski" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, June 13, 2003 8:46 PM
Subject: new LabelValueBean(" " + obj.getName(), obj.getValue()) is not
working
> When my
When my LabelValueBean which I construct as:
lvb = new LabelValueBean(" " + obj.getName(), obj.getValue());
when it gets displayed, it translates the & into & and what comes out
is, literally " ", when in fact I wanted spaces :).
Does anyone know how to specify a
Can someone provide me a simple example of utilizing the LabelValueBean
class with , the example provided on husted.com and in Struts
in Action book, doesn't utilize it, though states that you can. I just need
a small guidance on how to utilize it with
Thanks.
Ilya
--
To unsubscribe, e
I have the following code in my jsp page for a form.
ALL
SOME
NONE
Everything is being populated properly and then I move on to my form where I
can extract out each of these items into their individual string arrays. Is
there a way to store the name/value of e
" into the real adress of your Action and
ActionForm files.
If you don't got them, it won't work.
Hope this helps you as much as it helped me. :-)
cya,
marcus
[EMAIL PROTECTED] schrieb:
>
> Hi,
> I am trying to populate a select dropdown using the LabelValueBean .I hav
Hi,
I am trying to populate a select dropdown using the LabelValueBean .I have
seen some examples but am unable to find them .Could some one provide me
with the links to the earlier mails or sample example.
thanks,
Kavitha
7;" <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 6:39 PM
Subject: RE: LabelValueBean
> Hi,
> Yes. But I see empty 'option' tags being created. The bean is in
> application scope.
> bye,
> Mohan
>
> -Original Message-
> From: deepank [
Hi,
Yes. But I see empty 'option' tags being created. The bean is in
application scope.
bye,
Mohan
-Original Message-
From: deepank [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 6:45 PM
To: Struts Users Mailing List
Subject: Re: LabelValueBean
Hi
Hi,
is your "wanLinkOptions" a collection of ''LabelValueBean' beans stored in
sme scope
Deepank
- Original Message -
From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Hi,
The code above works but I don't see any values from my 'LabelValueBean'
displayed eventhough it is in application context scope. The 'dropdown' is
empty. Any ideas?
bye,
Mohan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For addit
The LabelValueBean is really a simple class; it's probably almost as
easy to write one yourself as it is to move the compiled class from
one JAR to another.
However, yes, it would probably work to just copy the
LabelValueBean.class file between jars. Note that, otherwise, it's
On Fri, 5 Jul 2002, Javier Muguruza wrote:
> Date: Fri, 5 Jul 2002 19:56:59 +0200
> From: Javier Muguruza <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: LabelVal
Hi,
I am usign struts1.0.2, I saw in the 1.0.2 release notes
http://jakarta.apache.org/struts/doc-1.0.2/release-notes-1.0.1.html that
LabelValueBean is available. But it is not included in struts.jar, and in
the release notes of 1.1.b
http://jakarta.apache.org/struts/userGuide/release-notes-1.1
I'm getting a deserialization error in Tomcat during a reinit pointing
to LabelValueBean. Checking out the current CVS source, I note that it
doesn't implement Serializable. Is there a reason why it doesn't
implement this?
--
To unsubscribe, e-mail: <mailto:[EMA
Hello,
I was trying to take Mr. Husted's subscription example
and create an array to hold multiple instances:
<%
java.util.ArrayList list = new
java.util.ArrayList();
list.add(new
com.hfa.register.LabelValueBean("address",
"address"));
%>
Might sound like a simple question, but how can i
outp
33 matches
Mail list logo