How can I make two combo box, work sincronized, when I choice on value the other will
be populate based on the value or the first, there is a way to make this without
refresh all page, just the second combo box. Using Struts,Tiles... , someone have
one example of this thing.
Abraços
Daniel
]
cc:
Subject:2 combo Box (drop down list)
How can I make two combo box, work sincronized, when I choice on value the
other will be populate based on the value or the first, there is a way to
make this without refresh all page, just the second combo box. Using
Struts
without a refresh its a javascript question
find the oreilly book on javascript and look at the Option()
constructor.
Struts and tiles may help you to get the data to the page, but the
re-population of select menus is javascript.
On 19 Feb 2004, at 13:05, Daniel wrote:
How can I make two
You can use ComboSelectTag from http://providers.sourceforge.net/
-Original Message-
From: Paul-J Woodward [mailto:[EMAIL PROTECTED]
Sent: Jueves, 19 de Febrero de 2004 09:09 a.m.
To: Struts Users Mailing List
Subject: Re: 2 combo Box (drop down list)
If you don't want to submit
List' [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 9:10 AM
Subject: RE: 2 combo Box (drop down list)
You can use ComboSelectTag from http://providers.sourceforge.net/
-Original Message-
From: Paul-J Woodward [mailto:[EMAIL PROTECTED]
Sent: Jueves, 19 de Febrero de 2004 09:09
ground, without don't come all the page again.
thanks
Daniel S.
- Original Message -
From: Guillermo Meyer [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 9:10 AM
Subject: RE: 2 combo Box (drop down list)
You can use ComboSelectTag
:36 AM
Subject: Re: 2 combo Box (drop down list)
That tag lib guillermo suggested, or writing your own javascript like i
suggested is the way to do it then ..
On 19 Feb 2004, at 13:34, Daniel wrote:
I used iframe, some time ago at one project but I was not using
struts,tiles
with iframe
and
struts select values setted if any (for prop1 and prop2 form
properties).
Saludos.
Guillermo
-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]
Sent: Jueves, 19 de Febrero de 2004 10:07 a.m.
To: Struts Users Mailing List
Subject: Re: 2 combo Box (drop down list)
I'll need
Hi,
I have a drop down list in my jsp page the code is shown below
td width=100bName/b/td
td
select name=sName style=width:225px
logic:iterate id=results name=sNameSetup property=nameList
scope=session
option value=bean:write name=results property =sName
//option
Assuming you are using Struts to process the form submission,
once the user selects a value from the drop down list and submits
the form to be processed, the action which you have configured to
handle this form submission, will have access to the selected value
via the form configured to store
by the vagueness of you question i guess you'll also have to
read some stuff on action forms also.
Cheers Mark
On 5 Jan 2004, at 16:42, Kamal Gupta wrote:
Hi,
I have a drop down list in my jsp page the code is shown below
td width=100bName/b/td
td
select name=sName style=width:225px
Hi,
Thanks for your reply robert.
I am using struts and in the action i am using
request.getParameter(sname);
for all other text boxes i get the value using request.getParamter();
but I dont get any value for the drop down list.
Can you help me more
Regards
Kamal
-Original Message
:05, Kamal Gupta wrote:
Hi,
Thanks for your reply robert.
I am using struts and in the action i am using
request.getParameter(sname);
for all other text boxes i get the value using request.getParamter();
but I dont get any value for the drop down list.
Can you help me more
Regards
Kamal
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 11:43 AM
To: [EMAIL PROTECTED]
Subject: RE: selecting a value from drop down list
Okay. I just saw something in your original post.
select name=sName style=width:225px
logic:iterate id
, at 17:05, Kamal Gupta wrote:
Hi,
Thanks for your reply robert.
I am using struts and in the action i am using
request.getParameter(sname);
for all other text boxes i get the value using request.getParamter();
but I dont get any value for the drop down list.
Can you help me more
Regards
drop down list
umm.. ehhh
perhaps
option value=
could be why you get no value (in fact i suspect thats it).. The
parameter will be whatever is in the value attribute, if you leave the
value attribute out then it will default to the display string
presented between the option tags..
On 5
Try request.getParameter(sName);
robert
-Original Message-
From: Kamal Gupta [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 11:06 AM
To: Struts Users Mailing List
Subject: RE: selecting a value from drop down list
Hi,
Thanks for your reply robert.
I am using struts
))
I have Collection locations (instantiated as new ArrayList() contains
Location(s)) with data from database and save it to the request or session,
and has listed successfully at drop down list using code below at jsp page.
tr
tdbean:message key=addLogBook.location //td
td
html:select name
Hi all,
In case I have 2 drop-down-lists and the second drop-down-list content
changed automatically if we select certain item at the first one,
how can I do it in the struts world? Any references to this case? Any code
example?
I am totally blind to this case..
best regards
-GI
Subject: Drop-down-list
Hi all,
In case I have 2 drop-down-lists and the second drop-down-list content
changed automatically if we select certain item at the first one,
how can I do it in the struts world? Any references to this case? Any code
example?
I am totally blind to this case..
best
My drop-down list got an error message:
org.apache.jasper.JasperException: Cannot retrieve
definition for form bean null
I have tried to display the drop-down list in two
ways:
First:
html:select size=1 property=editor
multiple=false
html:options collection=editors property=name
labelProperty
() {
return this.editor;
}
}
In your JSP page,
html:select property=editor
html:options property=options /
/html:select
Hope this helps you...
Ajay
My drop-down list got an error message:
org.apache.jasper.JasperException: Cannot retrieve
definition for form bean null
I have tried
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 30, 2003 11:18 AM
To: [EMAIL PROTECTED]
Subject: How Do I Create This Drop-Down List in Struts?
My ArrayList is a collection of bean object. The
ArrayList is created this way:
public Collection
a session
object:
session.setAttribute( EDITORS, editors );
How do I create a drop-down list for this collection
of editors?
html:select size=1 property=??
multiple=false
html:options collection=?? property=name
labelProperty=name/
/html:select
__
Do you
;
}
public String getName() {
return Name;
}
public void setName( String name ) {
this.name = name;
}
}
After editors is returned, I create a session
object:
session.setAttribute( EDITORS, editors );
How do I create a drop-down list for this collection
of editors
Just in case some other newbies are doing the same thing, this was my
solution:
html:select property=projCodeName
bean:define id=codes name=projectForm property=projCodeNames/
html:options collection=codes property=name labelProperty=name/
/html:select
Its making a new bean on the .jsp page
;
Obviously, each EditorBean object is the value of the
user_name. If I have this
request.setAttribute( EDITORS, editors );
How do I create a drop-down list? Please comment the
way I tend to code:
html:select property=editors multiple=false
bean:define id=EDITORS name=??
property=editors
Hi,
I am working on getting a drop-down list of values that are generated from a
DB call to show up on my page, both before and after validating the page.
It was working earlier, when I was just making a nice ArrayList of my
objects and adding the list to the session. (It looked to me like
Hi, if I use multi-select option box in my action form, after I select
some options and submit the form, the selected values are stored in a
array of String. My question is :
is that possible to get both selected values labels instead of only
values?
thanx!
= = = = = = = = = == = = = = =
] multi-select drop down list value?
Hi, if I use multi-select option box in my action form, after I select
some options and submit the form, the selected values are stored in a
array of String. My question is :
is that possible to get both selected values labels instead of only
values?
thanx
Can any one please tell me the best way to populating the drop down list box?
The scenario is the second drop down box depends on the value selected on the first
drop down box.
How can we change the items of the second drop down list. The values are there in the
request
object. But, how can I
]
09/10/2003 01:55 PM
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]
To
Struts Users Mailing List [EMAIL PROTECTED]
cc
Subject
dependant drop down list box
Can any one please tell me the best way to populating the drop down list
box?
The scenario is the second drop down box
Subject: dependant drop down list box
Can any one please tell me the best way to populating the drop down list box?
The scenario is the second drop down box depends on the value selected on the first
drop down box.
How can we change the items of the second drop down list. The values
-ness.
}
}
Any possible solution? Please inform.
Sriram
-Original Message-
From: Swaroop George [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 6:36 PM
To: Struts Users Mailing List
Subject: RE: drop-down list help
jsp:useBean id=dropdown scope=application class
Date: Wednesday, July
23, 2003 12:54:20 PM
To: 'Struts Users Mailing
List'
Subject: RE: drop-down
list help
Swaroop,I am trying to implement the way you have
mentioned for populating drop downs.I'm getting the following
'
Subject: RE: drop-down list help
Swaroop,
I am trying to implement the way you have mentioned for populating drop
downs.
I'm getting the following exception:
javax.servlet.ServletException: Exception thrown by getter for property
countries of bean dropdown
Here's the code that I'm using
}
Can you get any idea about why it's giving that error from the above information? Pl.
inform.
Sriram
-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 1:27 PM
To: [EMAIL PROTECTED]
Subject: RE: drop-down list help
hi,
i
Mailing List'
Subject: RE: drop-down list help
Swaroop,
I am trying to implement the way you have mentioned for populating drop downs.
I'm getting the following exception:
javax.servlet.ServletException: Exception thrown by getter for property countries of
bean dropdown
Here's the code that I'm
PROTECTED]
Sent: Wednesday, July 23, 2003 2:00 PM
To: 'Struts Users Mailing List'
Subject: RE: drop-down list help
Nagendra,
I have modified the bean as follows:
public class DropDownCollections {
private ArrayList countries = new ArrayList();
public ArrayList getCountries() {
ArrayList
Subject: RE: drop-down list help
Sriram,
} catch (Exception ex) {
ex.printStackTrace();
}
This exception block wont be shown on the JSP page.. but will be shown on ur
appserver's output window. Check whether any such exception is being thrown..
Swaroop
-Original Message
Think I got it..
Change ur method as public Collection getCountries() and try..
Swaroop
-Original Message-
From: sriram [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 2:17 PM
To: 'Struts Users Mailing List'
Subject: RE: drop-down list help
Swaroop,
I have given
and Step2 statements are printed on the console but Step 3 is not printed.
So, there's something wrong in bean:define/
Sriram
-Original Message-
From: Swaroop George [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 2:49 PM
To: Struts Users Mailing List
Subject: RE: drop-down list
Users Mailing List'
Subject: RE: drop-down list help
:-(
Same error! I modified the function as follows:
public Collection getCountries() {
ArrayList countries = new ArrayList();
try{
countries.add(new LabelValueBean(Australia
of html:options
Sriram
-Original Message-
From: Swaroop George [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:12 PM
To: Struts Users Mailing List
Subject: RE: drop-down list help
Yes I know that there is something wrong in bean:define. As the next step remove the
try {} catch{} block
an error. Please do remove the
exception handling from ur class..
-Original Message-
From: sriram [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:21 PM
To: 'Struts Users Mailing List'
Subject: RE: drop-down list help
Swaroop,
I have made a change to bean:define.
I removed
is
throwing an error. Please do remove the exception handling from ur class..
-Original Message-
From: sriram [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:21 PM
To: 'Struts Users Mailing List'
Subject: RE: drop-down list help
Swaroop,
I have made a change to bean:define
have you used? Can you
post your code for DropDownCollections.java please?
Sriram
-Original Message-
From: Swaroop George [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:34 PM
To: Struts Users Mailing List
Subject: RE: drop-down list help
I don't think u r proceeding the right
-- nagi
---Original Message---
From: Struts Users Mailing
List
Date: Wednesday, July
23, 2003 04:09:00 PM
To: 'Struts Users Mailing
List'
Subject: RE: drop-down
list help
Swaroop,You are right. I have
?
html:options property=CountryID labelProperty=CountryName/
correct?
sriram
-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 4:22 PM
To: [EMAIL PROTECTED]
Subject: RE: drop-down list help
HI,
well, if ur using struts1.0
-- nagi
---Original Message---
From: Struts Users Mailing
List
Date: Wednesday, July
23, 2003 04:25:49 PM
To: 'Struts Users Mailing
List'
Subject: RE: drop-down
list help
hi,i'm using struts 1.1
:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 4:19 PM
To: 'Struts Users Mailing List'
Subject: RE: drop-down list help
hi,
i'm using struts 1.1 and so i'm trying to use lablevaluebean.
u can create a simple javabean with two variables, with set,get methods
and use it
it is as easy
- so
: drop-down list help
Sriram,
Did u remove the try catch block as I said.. If u remove that u will
be able to know whether its an error withLabelValueBean or not..
And as you said if you are using another bean what you are doing is
correct..It should work.
Swaroop
-Original Message
To: Struts Users Mailing List
Subject: RE: drop-down list help
Sriram,
Did u remove the try catch block as I said.. If u remove that u will be able to know
whether its an error withLabelValueBean or not..
And as you said if you are using another bean what you are doing is correct..It
should
Good afternoon,
I have just changed one of my forms to use the DynaValidatorForm and I'm not convinced
of the benifits of it!
I remove the Form with the getX() and setX() methods and also validate() and reset(),
so I have less classes floating about. But now I don't have the reset method
It's beneficial for simple forms that are initalized to null. For more
complex stuff do it the old way.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: drop-down list help
Good afternoon,
I
Hi, guys:
I am a struts newbie. I have spent sevaral days trying
build a struts page with several drop-down lists in
vain. I am wondering there are any struts drop down
lists examples out there. I appreciate your help.
regards,
__
Do you Yahoo!?
SBC Yahoo! DSL
: Tuesday, July 22, 2003 8:54 AM
To: Struts Users Mailing List
Subject: drop-down list help
Hi, guys:
I am a struts newbie. I have spent sevaral days trying
build a struts page with several drop-down lists in
vain. I am wondering there are any struts drop down
lists examples out there. I
) will be set to the property 'month'
Hope it helps..
Swaroop
-Original Message-
From: Rick Col [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 6:24 PM
To: Struts Users Mailing List
Subject: drop-down list help
Hi, guys:
I am a struts newbie. I have spent sevaral days trying
build a struts
looking for developing code for drop-downs using struts 1.0 (that means I can't use
LabelValueBean).
Sriram
-Original Message-
From: Swaroop George [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 6:36 PM
To: Struts Users Mailing List
Subject: RE: drop-down list help
jsp:useBean id
/projects.html.
Suzette H. Daniel
Java Developer/Web dept
770 416.9222 ex: 5041
-Original Message-
From: Rick Col [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 8:54 AM
To: Struts Users Mailing List
Subject: drop-down list help
Hi, guys:
I am a struts newbie. I have
To: Struts Users Mailing List
Subject: drop-down list help
Hi, guys:
I am a struts newbie. I have spent sevaral days
trying
build a struts page with several drop-down lists in
vain. I am wondering there are any struts drop down
lists examples out there. I appreciate your help.
regards
Hi, Swaroop:
I have a question about your implementation, do we
still need to implement an actionForm class for the
following drop down list?
regards,
--- Swaroop George [EMAIL PROTECTED] wrote:
jsp:useBean id=dropdown scope=application
class=com.xxx.DropdownCollections
/jsp:useBean
Hi, Rick:
Take a look at
http://www.reumann.net/do/struts/main
In Lesson II, you'll find an example of how to use the
html:select tag
Lesson II-4 Create ActionForm - The UI element for
entering a value into the department field will be a
drop-down list.
Lesson II-6 Create DepartmentBean
ActionForm - The UI element for
entering a value into the department field will be a
drop-down list.
Lesson II-6 Create DepartmentBean - This bean will
be
used to represent options for the drop-down list.
Lesson II-8 Create EmployerService - shows how the
list of departments is created
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 7:07 PM
To: Struts Users Mailing List
Subject: RE: drop-down list help
Hi, Swaroop:
I have a question about your implementation, do we
still need to implement an actionForm class for the
following drop down list?
regards,
--- Swaroop
LabelValueBean
-Original Message-
From: sriram [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 6:41 PM
To: 'Struts Users Mailing List'
Subject: RE: drop-down list help
Swaroop,
Even I am looking for code for drop-down lists.
Are you using LabelValueBean in DropDownCollections.java
Hi all,
How can I populate dropdown list from form bean? What is the
structure of getter and setter methods required?
Actually the values of drop down list are coming from database
which gets populated into the form bean now from form bean how can that
be populated in dropdown
How can I populate dropdown list from form bean? What is the
structure of getter and setter methods required?
Actually the values of drop down list are coming from database
which gets populated into the form bean now from form bean
how can that be populated in dropdown list
from form bean? What is the
structure of getter and setter methods required?
Actually the values of drop down list are coming from database
which gets populated into the form bean now from form bean
how can that be populated in dropdown list?
Try this.
In your Action:
ArrayList months = new
Mailing List
Objet : RE: [OT] Help: JavaScript pop-up menu goes behind
drop down list
i n Internet Explorer
Thanks a lot. I will have a try.
Denis
-Original Message-
From: McCarthy, Jeffrey - Contractor - IMSC
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 10:24 AM
Hello, all,
Sorry if it is off the subject of this mailing list.
I use JavaScript to generate a pop-up menu. However, the menu is shadowed
by my drop down list on the same page. Does anybody have any idea how to
fix it.
Thanks.
Denis
p.s. my JavaScript code to generate the menu
function
To: Struts Users Mailing List
Subject: Help: JavaScript pop-up menu goes behind drop down list in
Internet Explorer
Hello, all,
Sorry if it is off the subject of this mailing list.
I use JavaScript to generate a pop-up menu. However, the
menu is shadowed
by my drop down list on the same page
We had a similar problem. We solved this by putting each drop down list box
into it's own div , assign it an id and write a JavaScript function that
hides each drop-down div when the user mouse over the drop down.
Hope that helps
-Original Message-
From: Eva Sager [mailto:[EMAIL
While this is a shameless plug, I have worked many hours on an open
source solution to this problem, so I felt it needed mentioning
here. I wrote a menu system called domMenu and it uses a radial
algorithm to detect select boxes and hides them as necessary when
opening a menu. The same algorithm
One question about caching data in servletcontext,
u said some thing about timestamp, what this timestamp
do exactly, how will i come to know when to reload the
data using this timestamp,
It was an idea off the top of my head... I haven't implemented it. I was
thinking you would set a fixed
Hello All,
I thought I would be slick an attempt to cache the Collections used to
populate my forms drop down list boxes instead of hitting the database every
time (The values may change daily).
The problem is that the inherited servlet variable and the getServlet
method only return a reference
Joshua wrote:
I thought I would be slick an attempt to cache the Collections used to
populate my forms drop down list boxes instead of hitting the database
every
time (The values may change daily).
Assuming you don't reload (or stop/start) your webapp daily, in which case
this helps,
Kevin Williams
On Thu, 2003-03-13 at 17:17, White, Joshua A (CASD, IT) wrote:
Hello All,
I thought I would be slick an attempt to cache the Collections used to
populate my forms drop down list boxes instead of hitting the database every
time (The values may change daily
caches everything as default, and refreshes on update.
.V
White, Joshua A (CASD, IT) wrote:
Hello All,
I thought I would be slick an attempt to cache the Collections used to
populate my forms drop down list boxes instead of hitting the database every
time (The values may change daily).
The problem
, but
by some different application , so how will i refresh
data in cache??
Ashish
--- Wendy Smoak [EMAIL PROTECTED] wrote:
Joshua wrote:
I thought I would be slick an attempt to cache the
Collections used to
populate my forms drop down list boxes instead of
hitting the database
every
time
(uid);
softCache.put(uid, bean);
return bean;
| -Original Message-
| From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
| Sent: Thursday, March 13, 2003 9:11 PM
| To: Struts Users Mailing List
| Subject: RE: Caching Drop Down List Box Strategies?
|
| Hi,
| One question about caching data
an attempt to cache the Collections used to
populate my forms drop down list boxes instead of hitting the database every
time (The values may change daily).
The problem is that the inherited servlet variable and the getServlet
method only return a reference to the ActionServlet when calling
Hi all
In a List box if particular option has to be selected(say the 3rd one in a
list of 5). Normally selected word has to be placed inside the relevant
option tag option selected . In struts the very first option shows
as the selected one on the browser. But if you need to show the 3rd
this automagically. So for example,
say the drop-down list is a choice between a, b and c, and the
property is called 'choice', and you want c to be the default, then
you just make sure that the default value of choice in your form bean is
c.
If you need me to clarify further, email me and I'll send you
I have a bean in application scope and I want to use one of its collection
property(responseIndicatorList) in a drop-down but I keep getting an error:
No getter method for property responseIndicatorList of bean common_lists
This is how I have in my jsp:
jsp:useBean id=common_lists
Title: Does anyone have a example to generate a drop down list?
Assuming I have a object method returning a list of values. Does anyone have a example to generate a drop down list?
Title: Does anyone have a example to generate a drop down list?
IN FORM:
// Get allxxx Values for
DropDown.xxxDropDown[] results =
profileSession.getxxxValues();//
Create the arrays for the labels and values.xxxLabels =
new ArrayList();xxxValues = new
ArrayList();// For each value
What is the simplest
way to dynamically create a drop-down list (select) that pulls values
from a database? Is there a specific tag I should use?
Iterator?
Kyle Robinson Systems Consultant Pangaea Systems
Inc. (250) 360-0111
This is how we do it...(I think the work simple
should be ommitted)
Get the content at the top of the JSP
page.
%pageContext.setAttribute("nameSuffixTypes",
getServletContext().getAttribute("nameSuffixTypes"));%
Place this where you want the Drop Down List on the
J
.
Hal
-Original Message-
From: Spencer Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 11:39 AM
To: [EMAIL PROTECTED]
Subject: Re: Drop-down list
This is how we do it...(I think the work simple should be ommitted)
Get the content at the top of the JSP page
ubject: Re: Drop-down list
This is how we do it...(I think the work simple should be ommitted)
Get the content at the top of the JSP page.
%
pageContext.setAttribute("nameSuffixTypes",
getServletContext().getAttribute("nameSuffixTypes"));
%
Place this where you want the
Do you guys know how to define the Multiple attribute in a select drop down
list for Struts?
- Original Message -
From: "Peter Alfors" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 11:29 AM
Subject: Re: Drop-down list
When adding options t
Tumbleweed Communications
At 11:44 AM 3/1/01 -0800, Spencer Smith wrote:
Do you guys know how to define the Multiple attribute in a select drop down
list for Struts?
- Original Message -
From: "Peter Alfors" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001
Suppose I have the drop down list which I wanted to create from a database
and the database is updated less frequently, is there a way in which I can
implement somekind of caching mechanism, with which I won't do a database
query always, instead I can use the cache to populate the drop down list
If you wanted to use a bean to store the select options, place it in the user's
session. Then, check to see if it exists before refreshing it.
HTH,
Pete
"Dorai, Harish (c)" wrote:
Suppose I have the drop down list which I wanted to create from a database
and the database is up
oviderName[]) {
{ this.providerName = providerName; }
}
What am I missing?
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 12:02 PM
Subject: Re: Drop-down list
Add the attribute to your tag like so:
html:select ... multiple="true"
: Drop-down list
Trying to use Multiple="true" attribute for html:select
Help!
O.k. so I declare it like so:
protected String[] providerName;
Then I get it:
public String[] getProviderName()
{
return (providerName);
}
Then I set it:
public void setProviderName(String pr
From: "Spencer Smith" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 1:02 PM
Subject: Re: Drop-down list
Trying to use Multiple="true" attribute for html:select
Help!
O.k. so I declare it like so:
protected String[] providerName;
Then I get it
Thanks for the help, but it didn't work :(
- Original Message -
From: "Kyle Robinson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 1:14 PM
Subject: RE: Drop-down list
I'd remove all the square brackets. If you want to keep them, the
param
Spencer Smith wrote:
Do you guys know how to define the Multiple attribute in a select drop down
list for Struts?
select name="propertyname" multiple="true"
In XML syntax, attributes always have to have a value.
Craig
1 - 100 of 101 matches
Mail list logo