2

I have a Scenario where I have a java class written in JSP and its members are used in that JSP itself.

The JSP is part of a liferay portlet.

Now, I need to write that class for the velocity template in liferay theme so that I can access it in navigation.vm file.

Following is a dummy snippet -

xyz.jsp (part)

<body>
<%
final class DummyABC {
public String method1() {

}
public String method2() {

}
public String method3() {

}

}
%>
</body>

I need to access this class in my navigation.vm file.

Please help me through it.

aayushdriger
  • 382
  • 3
  • 19

1 Answers1

0

You can write new java class and create a object in init.vm file so that navigation.vm file can access this variable

Sravan Kumar
  • 253
  • 1
  • 2
  • 8