The stack trace does not look like it has anything to do with rendering the tags. Does the problem happen when the page is rendered or when the page is submitted?
Also, that iteration should not be necessary. There are Struts tags for handling that. Off the top of my head, it should look something like this: <html ptionsCollection name="allhospitallist" value="hospitalid" label="hospitalname"/>
A good workman is known by his tools.
posted 15 years ago
Hi Marc Thanks for your answers. I tried both the methods which you told but with no success. I want to tell you some points. Actually HospitalData is a value object with Long hospitalid String hospitalname String hospitalcity
I add mulptile such dataobjects to my arraylist collection(allhospitallist).
So my allhospitallist contains mulitple HospitalData objects.
When I try the following code on my front end. <html:select property="hospitalId">
The case is when I am trying to display the Long value hospitalid on the front end.If I try to acces anyother field from this data object such as hospitalcity etc everything is displayed properly. Can you tell me how will i get access to the hospital id using the logic:iterate tag.
Action html ptionsCollection cannot be used as there is no label and property.
Both the hospital name field an hospitalid field are independent.
Thanks a lot Marc for your help.Hope u get to know what my real problem is.
Thanks once again. Regards Adrian
He's giving us the slip! Quick! Grab this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop