Ken,
Oops, I overlooked the fact that you were iterating over a Map. For Map,
your "row" bean will be of the type Map.Entry which has two
properties, "key" and "value". Your MyBean instance
is stored in the "value" property.
To retrieve it, you can do something like:
This may
--- John Yu <[EMAIL PROTECTED]> wrote:
> Do your getter and setter for the property 'value' return (and set)
> different type? And, have your overloaded the getter/setter methods? Either
> way will confuse java's introspection mechanism.
>
> In this case, either you have to implement a BeanInf
Do your getter and setter for the property 'value' return (and set)
different type? And, have your overloaded the getter/setter methods?
Either way will confuse java's introspection mechanism.
In this case, either you have to implement a BeanInfo class to tell java
how to introspect your class or
Dear John,
Thanks for response. The codes you sent looks familiar to me:-)
When I tried this, JSP page shows exceptions:
javax.servlet.ServletException: No getter method for property value of bean
myObj
...
..
...any suggestion?
Many thanks,
Ken
--- John Yu <[EMAIL PROTECTED]> wrote:
Ken,
This should do the job.
--
John
At 02:56 am 22-10-2001 -0700, you wrote:
Dear all,
I'm making MVC webapps with struts tags using HashMap as request
attribute.
I have stuck at one point:
I want to show the HashMap (which contains custom object) which works
as
myHashMap.put(Integer i, MyO
Dear all,
I'm making MVC webapps with struts tags using HashMap as request attribute.
I have stuck at one point:
I want to show the HashMap (which contains custom object) which works as
myHashMap.put(Integer i, MyObj myObj);
...and myObj returns String value by "myObj.getValue()".
currently I
6 matches
Mail list logo