hi Sunondo,

hard to check from here at work, but are you very sure all your action states have 
names ? remember AndroMDA does not use the diagrams but the data structures behind, 
this is important because for example in MagicDraw you really need to "open 
specification..." on the action state and fill in the name, just typing it in the 
diagram area is not enough

let me know if you are sure to have this just right, then I will check it more in 
depth when I get home and let you know if I find anything

-- Wouter

"Sunondo Ghosh" <[EMAIL PROTECTED]> wrote:

>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");
>
>    }
>
>
>
>}
>
>

__________________________________________________________________
Introducing the New Netscape Internet Service. 
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need. 

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to