Foren

calling a jsp from a hook

liron bar, geändert vor 12 Jahren.

calling a jsp from a hook

Junior Member Beiträge: 29 Beitrittsdatum: 28.09.11 Neueste Beiträge
hello,

i created a new liferay hook,
in there i hooked a couple of portal's jsp, and changed them a liitle bit.
now i want to call from my hooked jsp's to my own jsp (i created him in the same hook project)
but it seems that he cant find this jsp.

how can i do this?

thanks!
liron
thumbnail
jelmer kuperus, geändert vor 12 Jahren.

RE: calling a jsp from a hook

Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
Should work just fine, remember that jsps from hook are copied to the ROOT webapp, so don't reference the context of the hook in your path
liron bar, geändert vor 12 Jahren.

RE: calling a jsp from a hook

Junior Member Beiträge: 29 Beitrittsdatum: 28.09.11 Neueste Beiträge
thanks for the response,
but if the hook is the problem, then can somebody help me figure out why isnt this working?

<portlet:renderURL windowState="<%= LiferayWindowState.POP_UP.toString() %>" var="lironURL">
<portlet:param name="jspPage" value="/WEB-INF/jsp/configuration.jsp" />
</portlet:renderURL>

<liferay-ui:icon
cssClass="portlet-configuration"
image="configuration"
message="select-web-content"
method="get"
url="<%= lironURL %>"
/>


thank you!