2 combo Box (drop down list)....

2004-02-19 Thread Daniel
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

Re: 2 combo Box (drop down list)....

2004-02-19 Thread Paul-J Woodward
] 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

[OT]Re: 2 combo Box (drop down list)....

2004-02-19 Thread Mark Lowe
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

RE: 2 combo Box (drop down list)....

2004-02-19 Thread Guillermo Meyer
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

Re: 2 combo Box (drop down list)....

2004-02-19 Thread Daniel
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

Re: 2 combo Box (drop down list)....

2004-02-19 Thread Mark Lowe
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

Re: 2 combo Box (drop down list)....

2004-02-19 Thread Daniel
: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

RE: 2 combo Box (drop down list)....

2004-02-19 Thread Guillermo Meyer
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

selecting a value from drop down list

2004-01-05 Thread Kamal Gupta
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

RE: selecting a value from drop down list

2004-01-05 Thread Robert Taylor
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

Re: selecting a value from drop down list

2004-01-05 Thread Mark Lowe
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

RE: selecting a value from drop down list

2004-01-05 Thread Kamal Gupta
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

Re: selecting a value from drop down list

2004-01-05 Thread Mark Lowe
: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

FW: selecting a value from drop down list

2004-01-05 Thread Robert Taylor
-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

RE: selecting a value from drop down list

2004-01-05 Thread Kamal Gupta
, 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

RE: selecting a value from drop down list

2004-01-05 Thread Kamal Gupta
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

RE: selecting a value from drop down list

2004-01-05 Thread Robert Taylor
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

Re: Drop-down-list

2003-12-02 Thread Gede Indrawan
)) 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

Drop-down-list

2003-12-01 Thread Gede Indrawan
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

Re: Drop-down-list

2003-12-01 Thread Firat TIRYAKI
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

Drop-Down List - Cannot Retrieve Definition From Form Bean Null

2003-12-01 Thread Caroline Jen
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

Re: Drop-Down List - Cannot Retrieve Definition From Form Bean Null

2003-12-01 Thread Ajay Patil
() { 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

RE: How Do I Create This Drop-Down List in Struts?

2003-11-30 Thread Mohan Radhakrishnan
-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

Re: How Do I Create This Drop-Down List in Struts?

2003-11-30 Thread Mark Lowe
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

How Do I Create This Drop-Down List in Struts?

2003-11-29 Thread Caroline Jen
; } 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

re: Getting ArrayList of objects from my form bean into my drop down list - solution

2003-11-28 Thread Janice
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

re: Getting ArrayList of objects from my form bean into my drop down list - solution

2003-11-28 Thread Caroline Jen
; 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

Getting ArrayList of objects from my form bean into my drop down list

2003-11-27 Thread Janice
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

[maybeOT] multi-select drop down list value?

2003-09-30 Thread Julie . Huang
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! = = = = = = = = = == = = = = =

RE: [maybeOT] multi-select drop down list value?

2003-09-30 Thread Chen, Gin
] 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

dependant drop down list box

2003-09-10 Thread Pramod . P
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

Re: dependant drop down list box

2003-09-10 Thread harm
] 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

RE: dependant drop down list box

2003-09-10 Thread Mathew, Manoj
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

RE: drop-down list help

2003-07-23 Thread sriram
-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

RE: drop-down list help

2003-07-23 Thread Nagendra Kumar O V S
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

RE: drop-down list help

2003-07-23 Thread Swaroop George
' 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

RE: drop-down list help

2003-07-23 Thread sriram
} 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

RE: drop-down list help

2003-07-23 Thread sriram
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

RE: drop-down list help

2003-07-23 Thread Swaroop George
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

RE: drop-down list help

2003-07-23 Thread sriram
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

RE: drop-down list help

2003-07-23 Thread Swaroop George
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

RE: drop-down list help

2003-07-23 Thread sriram
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

RE: drop-down list help

2003-07-23 Thread Swaroop George
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

RE: drop-down list help

2003-07-23 Thread sriram
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

RE: drop-down list help

2003-07-23 Thread Swaroop George
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

RE: drop-down list help

2003-07-23 Thread sriram
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

RE: drop-down list help

2003-07-23 Thread sriram
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

RE: drop-down list help

2003-07-23 Thread Nagendra Kumar O V S
-- 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

RE: drop-down list help

2003-07-23 Thread sriram
? 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

RE: drop-down list help

2003-07-23 Thread Nagendra Kumar O V S
-- 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

RE: drop-down list help

2003-07-23 Thread Swaroop George
:[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

RE: drop-down list help

2003-07-23 Thread Swaroop George
: 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

RE: drop-down list help

2003-07-23 Thread sriram
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

RE: drop-down list help

2003-07-23 Thread vellosa
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

RE: drop-down list help

2003-07-23 Thread Suzette Daniel
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

drop-down list help

2003-07-22 Thread Rick Col
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

RE: drop-down list help

2003-07-22 Thread Suzette Daniel
: 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

RE: drop-down list help

2003-07-22 Thread Swaroop George
) 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

RE: drop-down list help

2003-07-22 Thread sriram
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

RE: drop-down list help

2003-07-22 Thread Rick Col
/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

RE: drop-down list help

2003-07-22 Thread Rick Col
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

RE: drop-down list help

2003-07-22 Thread Rick Col
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

RE: drop-down list help

2003-07-22 Thread Caroline Jen
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

RE: drop-down list help

2003-07-22 Thread Rick Col
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

RE: drop-down list help

2003-07-22 Thread Swaroop George
[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

RE: drop-down list help

2003-07-22 Thread Swaroop George
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

how to populate drop down list

2003-07-11 Thread Ravi Garg
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

RE: how to populate drop down list

2003-07-11 Thread James Childers
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

Re: how to populate drop down list

2003-07-11 Thread Qasim Khawaja
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

RE: [OT] Help: JavaScript pop-up menu goes behind drop down list i n Internet Explorer

2003-04-03 Thread Arnaud HERITIER
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

Help: JavaScript pop-up menu goes behind drop down list in InternetExplorer

2003-04-02 Thread Denis Wang
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

RE:[OT] Help: JavaScript pop-up menu goes behind drop down list in Internet Explorer

2003-04-02 Thread Jarnot Voytek Contr AU HQ/SC
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

RE: [OT] Help: JavaScript pop-up menu goes behind drop down list i n Internet Explorer

2003-04-02 Thread McCarthy, Jeffrey - Contractor - IMSC
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

Re: [OT] Help: JavaScript pop-up menu goes behind drop down list i n Internet Explorer

2003-04-02 Thread Dan Allen
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

RE: Caching Drop Down List Box Strategies?

2003-03-14 Thread Wendy Smoak
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

Caching Drop Down List Box Strategies?

2003-03-13 Thread White, Joshua A (CASD, IT)
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

RE: Caching Drop Down List Box Strategies?

2003-03-13 Thread Wendy Smoak
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

Re: Caching Drop Down List Box Strategies?

2003-03-13 Thread Kevin Williams
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

Re: Caching Drop Down List Box Strategies?

2003-03-13 Thread Vic Cekvenich
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

RE: Caching Drop Down List Box Strategies?

2003-03-13 Thread Ashish Kulkarni
, 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

RE: Caching Drop Down List Box Strategies?

2003-03-13 Thread Jacob Hookom
(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

Re: Caching Drop Down List Box Strategies?

2003-03-13 Thread Mark
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

drop down list

2002-01-19 Thread Mahesh Agarwal
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

Re: drop down list

2002-01-19 Thread Peter Hunter
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

PLEASE HELP: Why is this drop-down list not working?

2001-06-26 Thread Shamdasani Nimmi-ANS004
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

Does anyone have a example to generate a drop down list?

2001-05-18 Thread Joyce Tang
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?

Re: Does anyone have a example to generate a drop down list?

2001-05-18 Thread Spencer Smith
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

Drop-down list

2001-03-01 Thread Kyle Robinson
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

Re: Drop-down list

2001-03-01 Thread Spencer Smith
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

RE: Drop-down list

2001-03-01 Thread Deadman, Hal
. 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

Re: Drop-down list

2001-03-01 Thread Peter Alfors
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

Re: Drop-down list

2001-03-01 Thread Spencer Smith
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

Re: Drop-down list

2001-03-01 Thread martin . cooper
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

RE: Drop-down list

2001-03-01 Thread Dorai, Harish (c)
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

Re: Drop-down list

2001-03-01 Thread Peter Alfors
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

Re: Drop-down list

2001-03-01 Thread Spencer Smith
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"

RE: Drop-down list

2001-03-01 Thread Kyle Robinson
: 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

Re: Drop-down list

2001-03-01 Thread Spencer Smith
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

Re: Drop-down list

2001-03-01 Thread Spencer Smith
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

Re: Drop-down list

2001-03-01 Thread Craig R. McClanahan
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   2   >