|
Hi Wouter and Chad,
I was finally able to successfully compile the model that I had. I realized finally that had some extra elements from the Animal Quiz model which had not been deleted from the model even though I deleted them from the diagram. Some of those were causing the problem. Maybe it might make sense to have a “blank” model with all the required information in the distribution?
Anyway I still have a problem with the generated code. The code being generated in CreateUser.java corresponding to the UseCase is included below. It looks like ${target.actionMethodName} and ${actionState.actionMethodName} are not getting resolved. What changes do I need to make to the model to generate the correct code?
I tried to debug this by printing out the name of the target and action state, but couldn’t figure out the variables available to me. I tried to look at the Metafacades documentation but could not identify the Metafacade being used for StrutsAction.vsl. How can I do that? Then I should be able to figure out the variable for the “name” of target and actionState. Is that correct?
Thanks,
Sunondo
public final class CreateUser extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { final ActionForward forward = ${target.actionMethodName}(mapping, form, request, response); return forward; }
/** * */ private ActionForward ${actionState.actionMethodName}(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mapping.findForward("enter.details.of.a.user"); }
} |
