@CreateIfNull doesn't works
---------------------------
Key: WW-2000
URL: https://issues.apache.org/struts/browse/WW-2000
Project: Struts 2
Issue Type: Bug
Components: Configuration, Dispatch, Value Stack
Affects Versions: 2.0.8
Environment: xwork2.0.3,struts2.0.8
Reporter: zhouyanming
Assignee: Don Brown
Priority: Critical
I found struts 2 use com.opensymphony.xwork2.util.DefaultObjectTypeDeterminer
as default,but when I change xwork2.0.3 to xwork2.0.2,struts 2 use
com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer as default,so
@CreateIfNull works fine
org.apache.struts2.dispatcher.Dispatcher line 401
change
ObjectTypeDeterminer objectTypeDeterminer =
container.getInstance(ObjectTypeDeterminer.class);
to
ObjectTypeDeterminer objectTypeDeterminer =
container.getInstance(ObjectTypeDeterminer.class,"tiger");
this can make xwork2.0.3 works fine,but I don't think this is a good idea.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.