RE: Drop down population question

2004-05-02 Thread Basu, Abhijit (Abhi)
Rochas [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 11:40 AM To: Struts Users Mailing List Subject: Re: Drop down population question Hello Abhi, > I am sorry, which one is the storeToBean and storeToProperty with > reference to my example? I can't say, cause your example sh

Re: Drop down population question

2004-04-30 Thread Samuel Rochas
Hello Abhi, I am sorry, which one is the storeToBean and storeToProperty with reference to my example? I can't say, cause your example show me only the code in the JSP. Think about where do you want to store the object selected in your option. I assume it is in a bean in which you'll store the

RE: Drop down population question

2004-04-30 Thread Basu, Abhijit (Abhi)
-Original Message- From: Samuel Rochas [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 11:12 AM To: Struts Users Mailing List Subject: Re: Drop down population question Hello Abhi, > request.setAttribute("lstCountry", v) So the bean with you list is "

Re: Drop down population question

2004-04-30 Thread Samuel Rochas
Hello Abhi, request.setAttribute("lstCountry", v) So the bean with you list is "lstCountry". JSP: Explanation: -storeTo is the bean where to store the result -storeToProperty is the property of the bean storeTo where to store the result -lstCountry: your bean with the collect

RE: Drop down population question

2004-04-30 Thread Basu, Abhijit (Abhi)
Sorry, this is the exception I get: javax.servlet.ServletException: Cannot find bean c in any scope > -Original Message- > From: Basu, Abhijit (Abhi) > Sent: Friday, April 30, 2004 9:58 AM > To: '[EMAIL PROTECTED]' > Subject: Drop down populati

Drop down population question

2004-04-30 Thread Basu, Abhijit (Abhi)
I am new to Struts and am having problems populating drop-downs from the database. I am actually getting a little frustrated with these tags, seems like no coding in java anymore. :) 1. ActionClass code excerpt: mBean.makeConnection(); //get country list vector