D. Wacker
Jul 17th, 2007, 04:52 PM
hi all,
i am facing the problem to migrate a full web-mvc application into a portlet mvc version.
The app is quite complexe(several thousands loc only in the web mvc layer). After doing some investigations on the source, I recognize that a lot of business logic is implemented in the web-mvc controller classes. So my question is:
- is there any possibility of reusing the servlet controller in a portlet context
After doing some research and thinking about a may-be-workable-approche the following things came out of my twisted mind ;).
- defining a portlet controller which is fetching the requests and using the web-mvc mapping to figure out which web-mvc controller needs to be used.
- wrapping the portletresquest to a httpRequest and calling the web-mvc controller
- mapping the web mvc controller back to the portlet version
As to say it clear, this approve sounds like an adventure with a lot of pitfalls and my stomache is aching. So, does anybody has a better idea of solving this problem. I am quite new to the springframework, sorry for my may be stupid idea or question and english ;).
Regards,
D. Wacker
i am facing the problem to migrate a full web-mvc application into a portlet mvc version.
The app is quite complexe(several thousands loc only in the web mvc layer). After doing some investigations on the source, I recognize that a lot of business logic is implemented in the web-mvc controller classes. So my question is:
- is there any possibility of reusing the servlet controller in a portlet context
After doing some research and thinking about a may-be-workable-approche the following things came out of my twisted mind ;).
- defining a portlet controller which is fetching the requests and using the web-mvc mapping to figure out which web-mvc controller needs to be used.
- wrapping the portletresquest to a httpRequest and calling the web-mvc controller
- mapping the web mvc controller back to the portlet version
As to say it clear, this approve sounds like an adventure with a lot of pitfalls and my stomache is aching. So, does anybody has a better idea of solving this problem. I am quite new to the springframework, sorry for my may be stupid idea or question and english ;).
Regards,
D. Wacker