I have a doubt in <
jsp:useBean> standard action.
How the <jsp:useBean> will create a bean..
In HFSJ states that:
If the <jsp:useBean>? can't find an attribute object named "person", it can make one!
It checks for a bean based on the values of the id and scope in the tag, and if it doesn't get one, it makes an instance of the class specified in the class, assigns the object to the id variable, then sets it as an attribute in the scope you defined in the tag.
I don't understand the above two quotes..can anyone explain it..?
Example:
I have a bean class Person:
And in the JSP:
Whether the quotes states that, if I am not having the Person bean class, the <jsp:useBean> will create a new bean class with getter and setter..?
So <jsp:useBean> is set the attribute person...
The abive thing is retrieving the attribute
Then how comes when retrieving the attribute, it will be null..?
Pls explain..? some where I have confused a lot..
Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT