Re: populating Drop down -pls help

2003-09-05 Thread Thomas Max
I use the html:options tag : Just create a Collection (here gender of the Databaseentries (f,m) and pass as a bean to the page with the form. If you need more assistance have a look at : http://www.reumann.net/do/struts/lesson3 Regards, Thomas On Thu, 4 Sep 2003 02:38:16 -0700 (PDT

Re: populating Drop down -pls help

2003-09-04 Thread Thomas Max
I use the html:options tag : Just create a Collection (here gender of the Databaseentries (f,m) and pass as a bean to the page with the form. If you need more assistance have a look at : http://www.reumann.net/do/struts/lesson3 Regards, Thomas On Thu, 4 Sep 2003 02:38:16 -0700 (PDT

RE: populating Drop down -pls help

2003-09-04 Thread hari_s
How about if You try with this code in formbean Public String getGender() { return gender; } public void setGender(String gender) { this.gender=gender; } -Original Message- From: Goldy J [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 4:38 PM To: [EMAIL PROTECTED] Subje

RE: populating Drop down -pls help(solved thanks)

2003-09-04 Thread Goldy J
thanks a lot my mistake problem solved ... "Mainguy, Mike" <[EMAIL PROTECTED]> wrote:Are those typos in your jsp? ===>>>If so, that may be part of the problem... Also, I'd check to verify that the values are not padded (i.e. CHAR(2) datatype may yield "m " instead of "m" which is not the same val

RE: populating Drop down -pls help

2003-09-04 Thread Mainguy, Mike
Are those typos in your jsp? ===>>>mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 5:38 AM To: [EMAIL PROTECTED] Subject: populating Drop down -pls help Hello, I have a JSP in which there are number of dropdown along with text boxes. I am using struts tag lib for getting the value whe

Re: populating Drop down -pls help

2003-09-04 Thread Jan Van Stalle
Hello, I always use the html:options tag and it works fine; try the following: (there is a type error in your example) m f ofcourse, in the database you should have the values f or m Jan "Goldy J" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > I have a JSP i

Re: Populating Drop-down

2003-06-10 Thread Sandeep Takhar
someone else has replied, but just some more hints. You can look at html:optionsCollection which as support for labelValueBeans. The idea about using using the tiles:controller is an excellent one, but I have not done this. You will probably want it in application context and not load them all t

RE: Populating Drop-down

2003-06-10 Thread Kandi Potter
Tuesday, June 10, 2003 11:01 AM To: 'Struts Users Mailing List' Subject: RE: Populating Drop-down Hi Kandi, Thanks for the post. I'm pretty new to actually using strut, I understand you mentioned Struts will look for the bean in request scope and use it if it exists, but I gu

RE: Populating Drop-down

2003-06-10 Thread Poon, Johnny
utting the populated form in the request? Thanks. JP -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 9:22 AM To: Struts Users Mailing List Subject: RE: Populating Drop-down Hi Johnny, I'm also using label/value vectors.I don't har

RE: Populating Drop-down

2003-06-10 Thread Kandi Potter
10, 2003 9:56 AM To: 'Struts Users Mailing List' Subject: RE: Populating Drop-down Mark, I'm glad you asked the question, caz' I was wondering about the same thing. I'm using label/value. This is what I'm doing. I'm populating a form bean with a vector of lab

RE: Populating Drop-down

2003-06-10 Thread Poon, Johnny
PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 7:44 AM To: Struts Users Mailing List Subject: Re: Populating Drop-down I don't know if it's a best practice or not, but what I do is have the link to the edit screen actually point to an action, which is responsibl

Re: Populating Drop-down

2003-06-10 Thread ian_d_stewart
I don't know if it's a best practice or not, but what I do is have the link to the edit screen actually point to an action, which is responsible for initializing any related collections and storing them in session-scoped attributes. A related approach would be to use the tag to check for the co

RE: Populating Drop-down

2003-06-10 Thread shirishchandra.sakhare
This is what I have found works best. On the form have a ArrayList of the dropDown elements you want. And in the action, when preparing the data, get THE list from DB and populate it in form.There is something called LabelValueBean in stuts or Scaffold packaage if you want to use label value app