hello Tomas, Vido,.. and everybody else,

I added an improvement that will be very useful for a few people, it's this issue: http://galaxy.andromda.org:8080/jira/browse/BPM-157

Struts does not allow form data to be moved from one action to another (if the form name is different), this happens for example when you move from one use-case to another: the last action of the first use-case calls the first action of the other one.

All POSTed request parameters (request.getParameter("myParam")) will be lost, the ones sent using the GET method would survive, ie. URL query parameters.

So I solved this by explicitly populating the second use-case's form with the matching properties from the previous form.

I am using a method from jakarta commons beanutils so you'll have to add that dependency to your webapp if it's not already there (people using andromdapp:generate don't need to change anything)


So what does this mean in term of coding ? Well, you will not need to use the request.getSession().getAttribute(...) workaround anymore, just do form.getMyParam() and the parameter will be there if you sent it in the first use-case, just as you would expect it


good luck
-- Wouter


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to