| Author |
access custom bean in EL
|
igor kvak
Greenhorn
Joined: May 28, 2008
Posts: 17
|
|
hi i want to acces custom bean in jsp using expression language: where empList is LinkedList<Employee> (stored this way: session.setAttribute("empList", list);) i always get this error: javax.el.PropertyNotFoundException: The class 'java.lang.String' does not have the property 'getName'. (but according to the way how I store list, I dont know why is it stored as String) thanks for help
|
Never trouble trouble till trouble troubles you
|
 |
Rajkumar balakrishnan
Ranch Hand
Joined: May 29, 2008
Posts: 445
|
|
Originally posted by igor kvak: hi i want to acces custom bean in jsp using expression language: where empList is LinkedList<Employee> (stored this way: session.setAttribute("empList", list) i always get this error: javax.el.PropertyNotFoundException: The class ' java.lang.String' does not have the property 'getName'. (but according to the way how I store list, I dont know why is it stored as String) thanks for help
What the var emp means...? Please post your servlet file and bean file...
|
Never try to be a hard-worker. Be a smart-worker.
My Blog
|
 |
igor kvak
Greenhorn
Joined: May 28, 2008
Posts: 17
|
|
thanks, i finally solved it mistake was in this line: and the correct one is:
|
 |
 |
|
|
subject: access custom bean in EL
|
|
|