Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: intellij cannot resolve init.jsp
Greetings community
I'm starting to use intellij together with the liferay plugin,
according to this
tutorial. When you open a project, the following error messages are
displayed in the * .jsp files
apparently the instruction <% @ include file = "/
init.jsp"%> has failed, since you do not load the references
of the init.jsp
Any suggestion or guide will be of great help
It is an intellij thing.
I tend to ignore the init.jsp file while I'm building my JSP pages. When I'm done, I'll move imports, declarations and tag libs over to init.jsp.
Hello Nestor,
there is a functionality inside the IntelliJ plugin to detect absolute paths to JSP includes (like "/init.jsp"). This requires that your project is a valid "Liferay workspace".
To be a valid "Liferay workspace" you have to either apply the "com.liferay.workspace" plugin in your gradle build file, or you have to apply the "com.liferay.portal.tools.bundle.support" plugin in your maven build file (depending on if you are using gradle or maven).
Is your project a valid "Liferay workspace"?
Hi Dominik
Thanks for the response and the suggestion
I commented to you that I am using the plugin that provides liferay, but I have managed to solve the reference problem by adding the absolute path "./init.jsp"
I will put into practice what you mention and I will tell you the results
Powered by Liferay™