I have a link that looks like
...
"forms.InitMyForm.action?view=a.oldForm"
So this calls the InitMyForm class extended from
ActionSupport. The execute() method of this class sets up a few things, then returns "a.old" which is mapped in my
views.properties file as ...
forms.InitMyForm.a.old=velocity.Products.action
So when my Products class defined as
...
public class Products extends ActionSupport
implementsgets ParameterAware { ...
gets called, I get an error as follows
...
java.lang.IllegalArgumentException: The target
object for property 'view'. The target object needs to be initialized to a non-null value in order to set this
property.
at webwork.util.BeanUtil.setProperty(BeanUtil.java:174) at webwork.util.BeanUtil.setProperties(BeanUtil.java:124 So the problem is it's still seeing the view
parameter from the initial link and this link is still in the URL when I was
expecting "velocity.Products.action" in the URL.
Also, "velocity.Products.action" doesn't have a view
parameter.
Any help much
appreciated.
|