掲示板

struts_action path for message_boards portlet from another portlet

7年前 に Madasamy P によって更新されました。

struts_action path for message_boards portlet from another portlet

Junior Member 投稿: 90 参加年月日: 16/07/27 最新の投稿
Hi,
I was created a hook called AY
I have customize the view_file_entry.jsp page of document_library , which having 1 button "Message"
When I clicking the "Message" button it will shows the view.jsp page of message_boards and proceed further on message_boards services whatever we already used in the message_boards
I'm declaring struts_action in view_file_entry.jsp as
<portlet:renderURL var="messageURL">
<portlet:param name="struts_action" value="/message_board/view"/>
<portlet:param name="redirect" value="<%=redirect %>"/>
<portlet:param name="fileEntryId" value="<%= String.valueOf(fileEntry.getFileEntryId()) %>"/>
<portlet:param name="folderId" value="<%=String.valueOf(fileEntry.getFolderId())%>"/>
</portlet:renderURL>

<liferay-ui:icon
image='<%= "../file_system/small/" + "pdf" %>'
message="Make Message"
url="<%= messageURL %>"
/>

and in liferay-hook.xml as
<struts-action>
<struts-action-path>/message_boards/view</struts-action-path>
<struts-action-impl>com.liferay.portlet.messageboards.action.ViewAction</struts-action-impl>
</struts-action>
But when I'm clicking "Message" button it doesn't shows the view.jsp page of message_boards portlet

So please let me know how to solve it .

Thanks