Fórum

Custom Servlet

Martin Phee, modificado 12 Anos atrás.

Custom Servlet

Junior Member Postagens: 25 Data de Entrada: 09/05/11 Postagens Recentes
I created a custom servlet and it was working fine. I updated the struts-config-ext.xml and dropped my jar in the lib directory.

Now I want to move it to a more maintainable spot. Is the EXT plugin the proper place and if so in which project? I've tried creating one today and placing my code in ext-impl, but it just keeps throwing a 500 error when calling liferay. No stack traces.

Any help would be appreciated.
Martin Phee, modificado 12 Anos atrás.

RE: Custom Servlet

Junior Member Postagens: 25 Data de Entrada: 09/05/11 Postagens Recentes
Nevermind..... It's monday. I got it working, but the question still stands. Is there a proper package to place the files in?
rajesh bangaram, modificado 12 Anos atrás.

RE: Custom Servlet

Junior Member Postagens: 71 Data de Entrada: 08/03/11 Postagens Recentes
Hi Martin,

I think it is better to create a new war and access your custom servlet from portal. This way you can easily migrate and undeploy when required.

-Rajesh
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Custom Servlet

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Is the EXT plugin the proper place and if so in which project?


EXT plugin is used to extend Liferay functionalities by overriding Liferay classes. If your servlet doesn't override Liferay classes, but uses Liferay classes, just make it into a Liferay plugin. If it doesn't use Liferay classes, just create an ordinary war file for your web project.