Forums Register Login

Type and Class attributes problem in jsp useBean

+Pie Number of slices to send: Send
<jsp:useBean type="com.test.Person" id="empD" scope="request"/>

in here Person is a super class of empD's class (Employee exteds Person)

can we set the propery of "empD" that belogs to Employee but not to Person using <jsp:setProperty>
+Pie Number of slices to send: Send
I think that you can, as the container will use reflection to retrieve the getter's name.
+Pie Number of slices to send: Send
any others idea.

because in pure java we cant do this? I tried in here and it works without error..

Can senior person answer this why?
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 454 times.
Similar Threads
page 360 if property="*"
doubt on jsp:useBean tag
useBean
Question on polymorphic bean references.
jsp usebean
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:48:29.