Взято из форума лайфреяhttp://www.liferay.com/community/forums/-/message_boards/message/14327817:
Make sure you have in portal-ext.properties
And then there's a bunch of others also related to including, you did not mention yet. Like and . What you should use depends on the situation.
<%@include%>
Is the jsp include directive. The content of the file you are including is added at translation time. Eg. when the JSP file is compiled. So any code in the include is treated exactly as when had it been written inline in the jsp that does the include
<jsp:include>
Is the jsp include tag. The contents of the path you are including are added at request time. You can also parameterize the request that's made by nesting jsp:param elements in this tag. You can only include paths that are relative to your servlet context (eg. in your own war file)
<liferay-util:include>
Is the liferay inlude tag, afaik its kind of like jsp:include but let's you include files from other servlet contexts then your own, via it's servletContext attribute or portletId. Make sure you have in portal-ext.properties
theme.jsp.override.enabled=true
"liferay-util:include" tag checks this value in Liferay v.6.1.0 CE GA1...And then there's a bunch of others also related to including, you did not mention yet. Like
Комментариев нет:
Отправить комментарий