C
chris brat
Hi,
What is the correct expected behaviour when using a taglib regarding
how many objects are created per page/application?
More clearly, I created a custom tag (call it MyCustomTag) lib
and am using it in a JSP page - I expected that for each request
a new instance of the MyCustomTag class would be instantiated
and all its instance variables would be initialized.
However only one instance is being created (for multiple requests from
different clients)
and is being 'shared' between multiple pages (it seems to be a single
instance used application wide).
How do I force a single instance of this tag per page?
Thanks
Chris
What is the correct expected behaviour when using a taglib regarding
how many objects are created per page/application?
More clearly, I created a custom tag (call it MyCustomTag) lib
and am using it in a JSP page - I expected that for each request
a new instance of the MyCustomTag class would be instantiated
and all its instance variables would be initialized.
However only one instance is being created (for multiple requests from
different clients)
and is being 'shared' between multiple pages (it seems to be a single
instance used application wide).
How do I force a single instance of this tag per page?
Thanks
Chris