Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

centralized/reusable servlet inside portlet

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic