Hi Folks,
I'm fairly new to
JSP and have a little problem that I'm sure people have dealt with before. I'm simply trying to initialize a vector in a bean which will then later on have its contents displayed via a custom tag designed to iterate. I have a bean called ModelBean that represents the connection to a data model(ontology). In my index.jsp file I grab a reference to it using your standard useBean tag. I then want to retrieve a subset of data from the model and store this in a vector as a property to the bean. I had luck in intializing the vector in the bean's constructor, but I need to invoke initialization from a separate call because of some other dependancies in retrieving the subset. One thing I tried was making a bogus
String property in the model bean called dataSet getting set with <jsp:setProperty id="model" property="dataSet" value="set" /> Then in the setter, setDataSet() I initialize the vector, but all I get with this is an introspection related exception on the page. Will I have to put together a custom tag to do this? Any advice on this is greatly appreciated, thanks