RE: Problem with html:options - tag

2003-11-12 Thread Nimish Chourey , Tidel Park - Chennai
Probably .. The form tag has the action , which is linked to some different
form .

Ie say you have form tag like this 
html:form action=/A method=POST

And in struts config , the action is mapped to some form say form name B ,
then your html options tag should be like 

html:options name=B property=vendorsIndex
labelProperty=vendors/ 

In case of bean write , it wont look up for the form mapped to the action ..
Hence that works ..

Check this thing ..

Nimish




-Original Message-
From: Peter Friesleben [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: WG: Problem with html:options - tag


I'm receiving this error using Tomcat 4.1 and Struts 1.0

javax.servlet.ServletException: No getter method available for property
vendors for bean under name null 

I'm using the html:options tag this way:

html:select name=someForm property=vendorID
   html:options name=someForm property=vendorsIndex
labelProperty=vendors/ /html:select

Since formbean SomeForm is reused from another context it is explicitly
initialized and set to the session in the ActionClass defined in the
html:formĀ  tag of this JSP.

Funny thing is if I'm doing bean:write name=someForm property=vendors
/ in the same JSP I see the complete list of vendors.

Any suggestions?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problem in Html:options tag

2002-04-17 Thread Voytek . Jarnot

What's the error?

-Original Message-
From: Sidhartha Jain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:00 PM
To: [EMAIL PROTECTED]
Subject: Problem in Html:options tag


Hi
I have an options tag which gets a list of values somehwre around 
111 in number.But while displaying the page it gives an error and 
page is not shown.Everything in my code is correct.Just wanted to 
know is there any restriction on the number of options we can show 
in select box or is there some other way to make it around.

html:select property=family 
onchange=submitform(P_LoadObjectForm);
html:options property=familyList/
/html:select

I have GetFamilyList which builds up a list from the table and the 
SetFamilyList and GetFamily and setFamily methods which works 
correctly when I select less values.
Is there any other way to achieve this.

Any help would be appreciated.

Thanks
Sidhartha Jain





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem in Html:options tag

2002-04-17 Thread Galbreath, Mark

You have to use the collection property of the options tag - read the tag
spec:

http://jakarta.apache.org/struts/struts-bean.html

but it's not going to work

Mark

-Original Message-
From: Sidhartha Jain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 2:00 PM
To: [EMAIL PROTECTED]
Subject: Problem in Html:options tag


Hi
I have an options tag which gets a list of values somehwre around 
111 in number.But while displaying the page it gives an error and 
page is not shown.Everything in my code is correct.Just wanted to 
know is there any restriction on the number of options we can show 
in select box or is there some other way to make it around.

html:select property=family 
onchange=submitform(P_LoadObjectForm);
html:options property=familyList/
/html:select

I have GetFamilyList which builds up a list from the table and the 
SetFamilyList and GetFamily and setFamily methods which works 
correctly when I select less values.
Is there any other way to achieve this.

Any help would be appreciated.

Thanks
Sidhartha Jain





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem in Html:options tag

2002-04-17 Thread Voytek . Jarnot

In 1.1b1, I'm using html:optionsCollection without any problems; here's a
jsp snippet

pre
 html:select property=statusCode
  html:optionsCollection name=statusLookup property=statusCollection/
 /html:select
/pre

Where statusLookup is an application scope bean which has a
getStatusCollection() method which returns a Collection of
org.apache.struts.util.LabelValueBean

It all works, am I missing something?

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Problem in Html:options tag


You have to use the collection property of the options tag - read the tag
spec:

http://jakarta.apache.org/struts/struts-bean.html

but it's not going to work

Mark


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]