UNPKG

generator-liferay-portlet-template

Version:

Generated liferay portlet is a yeoman generator. This generator make a portlet with a specific configuration.

49 lines (45 loc) 1.98 kB
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name><%= nameLowerCase %></display-name> <context-param> <param-name>company_id</param-name> <param-value>liferay.com</param-value> </context-param> <listener> <listener-class>com.liferay.portal.kernel.servlet.PluginContextListener</listener-class> </listener> <servlet> <servlet-name><%= name %></servlet-name> <servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class> <init-param> <param-name>portlet-class</param-name> <param-value>es.tier.portlet.<%= nameLowerCase %>.<%= name %></param-value> </init-param> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name><%= name %></servlet-name> <url-pattern>/<%= name %>/*</url-pattern> </servlet-mapping> <servlet> <servlet-name>PortletAjaxServlet</servlet-name> <servlet-class>com.liferay.portal.kernel.servlet.PortalDelegateServlet</servlet-class> <init-param> <param-name>servlet-class</param-name> <param-value>es.tier.portlet.ajax.<%= name %>AjaxServlet</param-value> </init-param> <init-param> <param-name>sub-context</param-name> <param-value><%= nameLowerCase %>AjaxServlet</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app>