cancel
Showing results for 
Search instead for 
Did you mean: 

extend the TemplateContentServlet??

nyronian
Champ in-the-making
Champ in-the-making
I would like to create a servlet in a module extension that either extended the TemplateContentServlet or create my own servlet altogether. 

In order to do that, I would need access to the web.xml which I'm not sure is available.

Is this possible without creating my own version of the product?  I would like to add some functionality to the TemplateContentServlet but do not want to mess with the original code.

any ideas or is this even possible?  The only other option is to create my own application and call the TemplateContentServlet and process from there.

Thanks in advance.
1 REPLY 1

kevinr
Star Contributor
Star Contributor
It is not possible to extend a servlet without modify in the web.xml. However, we do have a Command and CommandProcessor pattern that can be extended via configuration:
http://wiki.alfresco.com/wiki/URL_Addressability#CommandServlet

Thanks,

Kevin