RE: OptionsCollection

2002-12-13 Thread VEDRE, RANAPRATAP REDDY
You can either use attribute collection="users" for options tag if you store in request or you can use name="formName" property="myList" if you have a getMyList() method for the form(You have to fill call formName.setMyList() in your action class before forwarding to a jsp). check

RE: OptionsCollection

2002-12-13 Thread shirishchandra . sakhare
:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 11:44 AM To: struts-user Cc: VEDRE Subject: RE: OptionsCollection You can either use attribute collection="users" for options tag if you store in request or you can use name="formName" property="myList" if

Re: OptionsCollection

2002-12-13 Thread Mark
I've read the documentation.. The confusion is how do i access a collection when the action returns another Imagine i've a user form and a list of users on the same page. [list returned via request via action] Joe Bloggs Another User Etc Add user form Name Company I've already passed a list o

Re: OptionsCollection

2002-12-13 Thread Mark
AIL PROTECTED]] > Sent: Friday, December 13, 2002 11:44 AM > To: struts-user > Cc: VEDRE > Subject: RE: OptionsCollection > > > You can either use attribute collection="users" for options tag if you store > in request > or you can use name="formNam

Re: OptionsCollection

2002-12-13 Thread V. Cekvenich
Put it in application scope. Mark wrote: I've read the documentation.. The confusion is how do i access a collection when the action returns another Imagine i've a user form and a list of users on the same page. [list returned via request via action] Joe Bloggs Another User Etc Add user form N

Re: OptionsCollection

2002-12-13 Thread V. Cekvenich
Use Struts-menu from sf.net. Mark wrote: Hello I've a number of collections already defined that end up being passed to my jsp's via the request object. Users in this case is a map defined in my business logic class that does db queries. users = (ListUsers).getUsers(); request.setAttribute("

Re: OptionsCollection

2002-12-13 Thread V. Cekvenich
hat is being displayed.So u just populate the form in action. Any comments... :-)) -Original Message- From: VEDRE [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 11:44 AM To: struts-user Cc: VEDRE Subject: RE: OptionsCollection You can either use attribute collect

RE: optionsCollection ...

2004-02-25 Thread Slattery, Tim - BLS
> Someone have one example of html:optionsCollection with html:select. The FormBean contains a domestic_Foreign property (a string), and a domesticForeignList property. That returns a collection of beans, each of which has "code" and "value" properties. -- Tim Slattery [EMAIL PROTECTED]

RE: Re: OptionsCollection

2002-12-13 Thread shirishchandra . sakhare
we Subject: Re: OptionsCollection Okay... But a drop down menu is screen data. And a list of companies is something that will be used more than once. So I have a normal class in my model layer ListCompanies In my UserAction (ListCompanies).getCompanies(); But this Action's primary job

Re: optionsCollection struts 1.1

2004-03-04 Thread yoge
For the above to work, your FormBean should have a property *conditions* with type as Collection. The coditions should be collection of properties and each should have two property Label and Value for display and value for the tag. In short , conditions property should c

Re: optionsCollection struts 1.1

2004-03-04 Thread as as
Good explanation.Then any way to set a default value show up in the list...onthe jsp page... Thanks yoge <[EMAIL PROTECTED]> wrote: For the above to work, your FormBean should have a property *conditions* with type as Collection. The coditions should be collection of properties and each sh

Re: optionsCollection struts 1.1

2004-03-04 Thread as as
Good explanation.Then any way to set a default value show up in the list...onthe jsp page... Thanks yoge <[EMAIL PROTECTED]> wrote: For the above to work, your FormBean should have a property *conditions* with type as Collection. The coditions should be collection of properties and each sh

Re: optionsCollection struts 1.1

2004-03-05 Thread bojke
as as wrote: Good explanation.Then any way to set a default value show up in the list...onthe jsp page... Thanks yoge <[EMAIL PROTECTED]> wrote: For the above to work, your FormBean should have a property *conditions* with type as Collection. The coditions should be collection of properties

Re: OptionsCollection and default value

2002-12-22 Thread David M. Karr
> "John" == John Menke <[EMAIL PROTECTED]> writes: John> I have searched the archives and can't find a direct answer to this: John> I am using html:optionsCollection within an html:select tag. John> My form bean has a method getTaskCodeTypeOptions that returns a collection Jo

Re: OptionsCollection and default value

2002-12-22 Thread Rick Reumann
On Sun, 22 Dec 2002 15:01:42 -0500 "John Menke" <[EMAIL PROTECTED]> wrote: > property="taskCodeTypeOptions" /> > > > MY JSP WILL RUN AND POPULATE THE SELECT TAG CORRECTLY, BUT IT DOESN'T > CHOOSE THE CORRECT INITIAL VALUE. > > IE. THE "SELECTED" property is not set correctly. > Are you sur

RE: OptionsCollection and default value

2002-12-22 Thread John Menke
> > Are you sure that "taskCodeType" in your form bean is being set to > the appropriate value before being directed to the jsp? > I'm positive this works as I had the formbean working with html:text tags to test and the taskCodeType variable displays fine. When I change from html:text to html:se

Re: OptionsCollection and default value

2002-12-22 Thread David M. Karr
> "John" == John Menke <[EMAIL PROTECTED]> writes: >> Are you sure that "taskCodeType" in your form bean is being set to >> the appropriate value before being directed to the jsp? John> I'm positive this works as I had the formbean working with html:text tags to John> test and

RE: OptionsCollection and default value

2002-12-22 Thread John Menke
> At this point, I would be executing this in the debugger, and > tracing through > the SelectTag code, and your form bean code. > I have to get JSP debugging setup to do that. Do you know if eclipse supports JSP debugging with Tomcat? -jm -- To unsubscribe, e-mail:

Re: OptionsCollection and default value

2002-12-22 Thread Rick Reumann
On Sun, 22 Dec 2002 18:39:05 -0500 "John Menke" <[EMAIL PROTECTED]> wrote: > > I have to get JSP debugging setup to do that. Do you know if eclipse > supports > JSP debugging with Tomcat? > Actually first just to appease me/us do a bean:write property="taskCodeType" right before you do the sel

Re: OptionsCollection and default value

2002-12-22 Thread David M. Karr
> "John" == John Menke <[EMAIL PROTECTED]> writes: >> At this point, I would be executing this in the debugger, and >> tracing through >> the SelectTag code, and your form bean code. John> I have to get JSP debugging setup to do that. Do you know if eclipse John> supports

RE: OptionsCollection and default value

2002-12-23 Thread John Menke
> Actually first just to appease me/us do a bean:write > property="taskCodeType" right before you do the select options > portion in your jsp. Then also view source of the page and see what > you have listed as the values of the options (maybe your values aren't > matching what is displayed, assu

RE: optionsCollection with another default value

2003-11-24 Thread Daniel Lipofsky
Use one tag followed by the tag. - Dan > -Original Message- > From: Frank Schaare [mailto:[EMAIL PROTECTED] > Sent: Monday, November 24, 2003 3:15 AM > > Hallo, > > i´ve made a select from an optionsCollection Tag. The values are read > from a hashmap like > value1 = one > value2 = t