This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

centralized/reusable servlet inside portlet  RSS feed

 
Wiyanto Ngasinur
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm planning to create servlet that reusable which it can be used across all portlet on different war, but i don't know where i can put this servlet ? because as far as i know servlet itself only can be called if its in same context with portlet.

Please enlight me ...
 
Dinesh Ilindra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can separate the re-usable functionality, you need not make a servlet out of it, but make a utility and use it.

Probably if you are looking for a re-usable architecture over portlet spec, that you will extend to create your future portlets, you can build wrappers over the spec and add your functionality there. So, next time you crate a new portlet, you extend your wrapper classes rather than spec classes.

- Dinesh.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!