掲示板

Custom Servlet

12年前 に Martin Phee によって更新されました。

Custom Servlet

Junior Member 投稿: 25 参加年月日: 11/05/09 最新の投稿
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.
12年前 に Martin Phee によって更新されました。

RE: Custom Servlet

Junior Member 投稿: 25 参加年月日: 11/05/09 最新の投稿
Nevermind..... It's monday. I got it working, but the question still stands. Is there a proper package to place the files in?
12年前 に rajesh bangaram によって更新されました。

RE: Custom Servlet

Junior Member 投稿: 71 参加年月日: 11/03/08 最新の投稿
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
12年前 に Hitoshi Ozawa によって更新されました。

RE: Custom Servlet

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
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.