Title: bpm4struts: form bean not instantiated?

Hi Stefan,

 

Which AndroMDA version are you using ? Did you switch off model validation ? AndroMDA typically stops and complains after code generation instead of generating a faulty application …

Did you manually edit the jsp page ?

 

I would expect the form *never* to be null

 

-- Wouter

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dr. Stefan Reisner
Sent: Monday, March 07, 2005 1:06 PM
To: [email protected]
Subject: [Andromda-user] bpm4struts: form bean not instantiated?

 

I have created a very simple use case consisting of just the following flow:

Start --> "prompt" --> <<FrontEndView>> "enter" --> "process inputs" --> End

I have not added any code manually; the <<FrontEndController>> class has no operations.
This works fine as long as I don't add parameters to the transition from "enter" to "process inputs".

When I add a parameter Input1 : datatype::String, I get the following error when running the web application:

javax.servlet.ServletException: ServletException in '/mda/testproject/enter-ok.jsp': No getter method for property Input1 of bean form

The execute method of the use case action is passed a null reference for parameter form and it just sets the "form" session attribute to that null reference. It seems to me that before the use case forwards to the JSP for the first time, it should instantiate the form class.

Where did I go wrong?

Best regards,
Stefan

Reply via email to