留言板
Friendly URL
Hi i have my liferay-portlet.xml and xxx-friendly-url-routes.xml like below.
liferay-portlet.xml
<portlet>
<portlet-name>38</portlet-name>
<icon>/icon.png</icon>
<friendly-url-mapper-class>com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper</friendly-url-mapper-class>
<friendly-url-mapping>xxx</friendly-url-mapping>
<friendly-url-routes>com/liferay/samples/xxx-friendly-url-routes.xml</friendly-url-routes>
<instanceable>false</instanceable>
<private-session-attributes>false</private-session-attributes>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
<css-class-wrapper>xxx-portlet</css-class-wrapper>
<add-default-resource>true</add-default-resource>
</portlet>
xxx-friendly-url-routes.xml
<?xml version="1.0"?>
<!DOCTYPE routes PUBLIC "-//Liferay//DTD Friendly URL Routes 6.1.0//EN"
"http://www.liferay.com/dtd/liferay-friendly-url-routes_6_1_0.dtd">
<routes>
<route>
<pattern>/aaa</pattern>
<generated-parameter name="mvcPath">/aaa-portlet/docroot/jsp/aaa/xxx.jsp</generated-parameter>
</route>
</routes>
------------------------------------------
but with the above code, I am not able to get the friendly URL. I am getting the same lengthy URL.
Please assist.
Thanks in advance,
Suresh