lukaszlenart commented on pull request #483:
URL: https://github.com/apache/struts/pull/483#issuecomment-832190412


   @yasserzamani you can use the same default patterns in both cases but I 
would give user a chance to change them independently. You cannot turn a bean 
into Singleton programmatically, the scope is defined in 
[`struts-default.xml`](https://github.com/apache/struts/blob/master/core/src/main/resources/struts-default.xml#L224-L225)
 as `prototype` so each time a new instance will be created. This is fine for 
interceptors as they are created per stack, each interceptor is a _Singleton_ 
for a given interceptors stack. This won't work for tags, as tags are 
re-created per each request and each tag is a separated instance.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to